pub struct PromiseHandle { /* private fields */ }Implementations§
Trait Implementations§
Source§impl From<PromiseHandle> for JsValue
impl From<PromiseHandle> for JsValue
Source§fn from(value: PromiseHandle) -> Self
fn from(value: PromiseHandle) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PromiseHandle
impl FromWasmAbi for PromiseHandle
Source§impl IntoWasmAbi for PromiseHandle
impl IntoWasmAbi for PromiseHandle
Source§impl LongRefFromWasmAbi for PromiseHandle
impl LongRefFromWasmAbi for PromiseHandle
Source§type Abi = WasmPtr<WasmRefCell<PromiseHandle>>
type Abi = WasmPtr<WasmRefCell<PromiseHandle>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<PromiseHandle>
type Anchor = RcRef<PromiseHandle>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for PromiseHandle
impl OptionFromWasmAbi for PromiseHandle
Source§impl OptionIntoWasmAbi for PromiseHandle
impl OptionIntoWasmAbi for PromiseHandle
Source§impl RefFromWasmAbi for PromiseHandle
impl RefFromWasmAbi for PromiseHandle
Source§type Abi = WasmPtr<WasmRefCell<PromiseHandle>>
type Abi = WasmPtr<WasmRefCell<PromiseHandle>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<PromiseHandle>
type Anchor = RcRef<PromiseHandle>
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 PromiseHandle
impl RefMutFromWasmAbi for PromiseHandle
Source§type Abi = WasmPtr<WasmRefCell<PromiseHandle>>
type Abi = WasmPtr<WasmRefCell<PromiseHandle>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<PromiseHandle>
type Anchor = RcRefMut<PromiseHandle>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for PromiseHandle
impl SupportsInstanceProperty for PromiseHandle
impl SupportsStaticProperty for PromiseHandle
Source§impl TryFromJsValue for PromiseHandle
impl TryFromJsValue for PromiseHandle
Source§impl VectorFromWasmAbi for PromiseHandle
impl VectorFromWasmAbi for PromiseHandle
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PromiseHandle]>
Source§impl VectorIntoWasmAbi for PromiseHandle
impl VectorIntoWasmAbi for PromiseHandle
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PromiseHandle]>) -> Self::Abi
Source§impl WasmDescribeVector for PromiseHandle
impl WasmDescribeVector for PromiseHandle
Auto Trait Implementations§
impl !RefUnwindSafe for PromiseHandle
impl !Send for PromiseHandle
impl !Sync for PromiseHandle
impl !UnwindSafe for PromiseHandle
impl Freeze for PromiseHandle
impl Unpin for PromiseHandle
impl UnsafeUnpin for PromiseHandle
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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::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.