pub struct JsIpcClientSubscription {
subscription: IpcClientSubscription,
}
Expand description
JavaScript wrapper around the IPC client subscription. For more information, see the IpcClientSubscription documentation.
Fields§
§subscription: IpcClientSubscription
Implementations§
Source§impl JsIpcClientSubscription
impl JsIpcClientSubscription
pub async fn receive( &mut self, abort_signal: Option<AbortSignal>, ) -> Result<IncomingMessage, ReceiveError>
Trait Implementations§
Source§impl From<JsIpcClientSubscription> for JsValue
impl From<JsIpcClientSubscription> for JsValue
Source§fn from(value: JsIpcClientSubscription) -> Self
fn from(value: JsIpcClientSubscription) -> Self
Converts to this type from the input type.
Source§impl RefFromWasmAbi for JsIpcClientSubscription
impl RefFromWasmAbi for JsIpcClientSubscription
Source§type Anchor = RcRef<JsIpcClientSubscription>
type Anchor = RcRef<JsIpcClientSubscription>
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 VectorFromWasmAbi for JsIpcClientSubscription
impl VectorFromWasmAbi for JsIpcClientSubscription
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsIpcClientSubscription]>
Source§impl VectorIntoJsValue for JsIpcClientSubscription
impl VectorIntoJsValue for JsIpcClientSubscription
fn vector_into_jsvalue(vector: Box<[JsIpcClientSubscription]>) -> JsValue
Source§impl VectorIntoWasmAbi for JsIpcClientSubscription
impl VectorIntoWasmAbi for JsIpcClientSubscription
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsIpcClientSubscription]>) -> Self::Abi
impl SupportsConstructor for JsIpcClientSubscription
impl SupportsInstanceProperty for JsIpcClientSubscription
impl SupportsStaticProperty for JsIpcClientSubscription
Auto Trait Implementations§
impl Freeze for JsIpcClientSubscription
impl RefUnwindSafe for JsIpcClientSubscription
impl Send for JsIpcClientSubscription
impl Sync for JsIpcClientSubscription
impl Unpin for JsIpcClientSubscription
impl UnwindSafe for JsIpcClientSubscription
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> 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
.