pub enum TsError<E = Never> {
Inner(E),
Conversion(WireError),
}Expand description
Error of a generated shim.
Inner reaches JavaScript through E’s own From<E> for JsValue, so a bitwarden_error type
keeps the name and variant it already had. Shims for infallible methods use the default E,
leaving Conversion as the only reachable variant.
Variants§
Inner(E)
The underlying method failed.
Conversion(WireError)
A value could not be converted across the boundary.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for TsError<E>where
E: Freeze,
impl<E> RefUnwindSafe for TsError<E>where
E: RefUnwindSafe,
impl<E> Send for TsError<E>where
E: Send,
impl<E> Sync for TsError<E>where
E: Sync,
impl<E> Unpin for TsError<E>where
E: Unpin,
impl<E> UnsafeUnpin for TsError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for TsError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more