Struct JsReceiveError
pub struct JsReceiveError {
pub timeout: bool,
pub crypto: JsValue,
pub communication: JsValue,
}
Fields§
§timeout: bool
§crypto: JsValue
§communication: JsValue
Trait Implementations§
§impl From<JsReceiveError> for JsValue
impl From<JsReceiveError> for JsValue
§fn from(value: JsReceiveError) -> JsValue
fn from(value: JsReceiveError) -> JsValue
Converts to this type from the input type.
§impl From<ReceiveError<JsValue, JsValue>> for JsReceiveError
impl From<ReceiveError<JsValue, JsValue>> for JsReceiveError
§fn from(error: ReceiveError<JsValue, JsValue>) -> JsReceiveError
fn from(error: ReceiveError<JsValue, JsValue>) -> JsReceiveError
Converts to this type from the input type.
§impl FromWasmAbi for JsReceiveError
impl FromWasmAbi for JsReceiveError
§impl IntoWasmAbi for JsReceiveError
impl IntoWasmAbi for JsReceiveError
§impl LongRefFromWasmAbi for JsReceiveError
impl LongRefFromWasmAbi for JsReceiveError
§type Anchor = RcRef<JsReceiveError>
type Anchor = RcRef<JsReceiveError>
Same as
RefFromWasmAbi::Anchor
§unsafe fn long_ref_from_abi(
js: <JsReceiveError as LongRefFromWasmAbi>::Abi,
) -> <JsReceiveError as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsReceiveError as LongRefFromWasmAbi>::Abi, ) -> <JsReceiveError as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
§impl OptionFromWasmAbi for JsReceiveError
impl OptionFromWasmAbi for JsReceiveError
§fn is_none(abi: &<JsReceiveError as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsReceiveError 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 JsReceiveError
impl OptionIntoWasmAbi for JsReceiveError
§fn none() -> <JsReceiveError as IntoWasmAbi>::Abi
fn none() -> <JsReceiveError 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 JsReceiveError
impl RefFromWasmAbi for JsReceiveError
§type Anchor = RcRef<JsReceiveError>
type Anchor = RcRef<JsReceiveError>
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: <JsReceiveError as RefFromWasmAbi>::Abi,
) -> <JsReceiveError as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsReceiveError as RefFromWasmAbi>::Abi, ) -> <JsReceiveError as RefFromWasmAbi>::Anchor
§impl RefMutFromWasmAbi for JsReceiveError
impl RefMutFromWasmAbi for JsReceiveError
§type Anchor = RcRefMut<JsReceiveError>
type Anchor = RcRefMut<JsReceiveError>
Same as
RefFromWasmAbi::Anchor
§unsafe fn ref_mut_from_abi(
js: <JsReceiveError as RefMutFromWasmAbi>::Abi,
) -> <JsReceiveError as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsReceiveError as RefMutFromWasmAbi>::Abi, ) -> <JsReceiveError as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
§impl TryFromJsValue for JsReceiveError
impl TryFromJsValue for JsReceiveError
§fn try_from_js_value(
value: JsValue,
) -> Result<JsReceiveError, <JsReceiveError as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsReceiveError, <JsReceiveError as TryFromJsValue>::Error>
Performs the conversion.
§impl VectorFromWasmAbi for JsReceiveError
impl VectorFromWasmAbi for JsReceiveError
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsReceiveError as VectorFromWasmAbi>::Abi, ) -> Box<[JsReceiveError]>
§impl VectorIntoWasmAbi for JsReceiveError
impl VectorIntoWasmAbi for JsReceiveError
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsReceiveError]>, ) -> <JsReceiveError as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsReceiveError
impl RefUnwindSafe for JsReceiveError
impl !Send for JsReceiveError
impl !Sync for JsReceiveError
impl Unpin for JsReceiveError
impl UnwindSafe for JsReceiveError
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
.