Struct JsSendError
pub struct JsSendError {
pub crypto: JsValue,
pub communication: JsValue,
}
Fields§
§crypto: JsValue
§communication: JsValue
Trait Implementations§
§impl From<JsSendError> for JsValue
impl From<JsSendError> for JsValue
§fn from(value: JsSendError) -> JsValue
fn from(value: JsSendError) -> JsValue
Converts to this type from the input type.
§impl From<SendError<JsValue, JsValue>> for JsSendError
impl From<SendError<JsValue, JsValue>> for JsSendError
§fn from(error: SendError<JsValue, JsValue>) -> JsSendError
fn from(error: SendError<JsValue, JsValue>) -> JsSendError
Converts to this type from the input type.
§impl FromWasmAbi for JsSendError
impl FromWasmAbi for JsSendError
§impl IntoWasmAbi for JsSendError
impl IntoWasmAbi for JsSendError
§impl LongRefFromWasmAbi for JsSendError
impl LongRefFromWasmAbi for JsSendError
§type Anchor = RcRef<JsSendError>
type Anchor = RcRef<JsSendError>
Same as
RefFromWasmAbi::Anchor
§unsafe fn long_ref_from_abi(
js: <JsSendError as LongRefFromWasmAbi>::Abi,
) -> <JsSendError as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsSendError as LongRefFromWasmAbi>::Abi, ) -> <JsSendError as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
§impl OptionFromWasmAbi for JsSendError
impl OptionFromWasmAbi for JsSendError
§fn is_none(abi: &<JsSendError as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsSendError as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.§impl OptionIntoWasmAbi for JsSendError
impl OptionIntoWasmAbi for JsSendError
§fn none() -> <JsSendError as IntoWasmAbi>::Abi
fn none() -> <JsSendError as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read more§impl RefFromWasmAbi for JsSendError
impl RefFromWasmAbi for JsSendError
§type Anchor = RcRef<JsSendError>
type Anchor = RcRef<JsSendError>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.§unsafe fn ref_from_abi(
js: <JsSendError as RefFromWasmAbi>::Abi,
) -> <JsSendError as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsSendError as RefFromWasmAbi>::Abi, ) -> <JsSendError as RefFromWasmAbi>::Anchor
§impl RefMutFromWasmAbi for JsSendError
impl RefMutFromWasmAbi for JsSendError
§type Anchor = RcRefMut<JsSendError>
type Anchor = RcRefMut<JsSendError>
Same as
RefFromWasmAbi::Anchor
§unsafe fn ref_mut_from_abi(
js: <JsSendError as RefMutFromWasmAbi>::Abi,
) -> <JsSendError as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsSendError as RefMutFromWasmAbi>::Abi, ) -> <JsSendError as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
§impl TryFromJsValue for JsSendError
impl TryFromJsValue for JsSendError
§fn try_from_js_value(
value: JsValue,
) -> Result<JsSendError, <JsSendError as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsSendError, <JsSendError as TryFromJsValue>::Error>
Performs the conversion.
§impl VectorFromWasmAbi for JsSendError
impl VectorFromWasmAbi for JsSendError
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsSendError as VectorFromWasmAbi>::Abi, ) -> Box<[JsSendError]>
§impl VectorIntoWasmAbi for JsSendError
impl VectorIntoWasmAbi for JsSendError
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsSendError]>, ) -> <JsSendError as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsSendError
impl RefUnwindSafe for JsSendError
impl !Send for JsSendError
impl !Sync for JsSendError
impl Unpin for JsSendError
impl UnwindSafe for JsSendError
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.