pub struct ProtocolMagic(/* private fields */);Implementations§
Trait Implementations§
Source§impl AsRef<ProtocolMagic> for ProtocolMagic
impl AsRef<ProtocolMagic> for ProtocolMagic
Source§fn as_ref(&self) -> &ProtocolMagic
fn as_ref(&self) -> &ProtocolMagic
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ProtocolMagic
impl Clone for ProtocolMagic
Source§fn clone(&self) -> ProtocolMagic
fn clone(&self) -> ProtocolMagic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<ProtocolMagic> for JsValue
impl From<ProtocolMagic> for JsValue
Source§fn from(value: ProtocolMagic) -> Self
fn from(value: ProtocolMagic) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolMagic> for ProtocolMagic
impl From<ProtocolMagic> for ProtocolMagic
Source§fn from(native: ProtocolMagic) -> Self
fn from(native: ProtocolMagic) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolMagic> for ProtocolMagic
impl From<ProtocolMagic> for ProtocolMagic
Source§fn from(wasm: ProtocolMagic) -> Self
fn from(wasm: ProtocolMagic) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ProtocolMagic
impl FromWasmAbi for ProtocolMagic
Source§impl IntoWasmAbi for ProtocolMagic
impl IntoWasmAbi for ProtocolMagic
Source§impl LongRefFromWasmAbi for ProtocolMagic
impl LongRefFromWasmAbi for ProtocolMagic
Source§impl OptionFromWasmAbi for ProtocolMagic
impl OptionFromWasmAbi for ProtocolMagic
Source§impl OptionIntoWasmAbi for ProtocolMagic
impl OptionIntoWasmAbi for ProtocolMagic
Source§impl RefFromWasmAbi for ProtocolMagic
impl RefFromWasmAbi for ProtocolMagic
Source§type Anchor = RcRef<ProtocolMagic>
type Anchor = RcRef<ProtocolMagic>
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.Source§impl RefMutFromWasmAbi for ProtocolMagic
impl RefMutFromWasmAbi for ProtocolMagic
Source§impl TryFromJsValue for ProtocolMagic
impl TryFromJsValue for ProtocolMagic
Source§impl VectorFromWasmAbi for ProtocolMagic
impl VectorFromWasmAbi for ProtocolMagic
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ProtocolMagic]>
Source§impl VectorIntoJsValue for ProtocolMagic
impl VectorIntoJsValue for ProtocolMagic
fn vector_into_jsvalue(vector: Box<[ProtocolMagic]>) -> JsValue
Source§impl VectorIntoWasmAbi for ProtocolMagic
impl VectorIntoWasmAbi for ProtocolMagic
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ProtocolMagic]>) -> Self::Abi
Source§impl WasmDescribeVector for ProtocolMagic
impl WasmDescribeVector for ProtocolMagic
impl Copy for ProtocolMagic
impl SupportsConstructor for ProtocolMagic
impl SupportsInstanceProperty for ProtocolMagic
impl SupportsStaticProperty for ProtocolMagic
Auto Trait Implementations§
impl Freeze for ProtocolMagic
impl RefUnwindSafe for ProtocolMagic
impl Send for ProtocolMagic
impl Sync for ProtocolMagic
impl Unpin for ProtocolMagic
impl UnwindSafe for ProtocolMagic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§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::AbiSource§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.