pub struct Subscription { /* private fields */ }Implementations§
Source§impl Subscription
impl Subscription
pub fn new(effect: Effect<LocalStorage>) -> Self
Source§impl Subscription
impl Subscription
pub fn unsubscribe(&mut self)
Trait Implementations§
Source§impl Drop for Subscription
impl Drop for Subscription
Source§impl From<Subscription> for JsValue
impl From<Subscription> for JsValue
Source§fn from(value: Subscription) -> Self
fn from(value: Subscription) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Subscription
impl FromWasmAbi for Subscription
Source§impl IntoWasmAbi for Subscription
impl IntoWasmAbi for Subscription
Source§impl LongRefFromWasmAbi for Subscription
impl LongRefFromWasmAbi for Subscription
Source§impl OptionFromWasmAbi for Subscription
impl OptionFromWasmAbi for Subscription
Source§impl OptionIntoWasmAbi for Subscription
impl OptionIntoWasmAbi for Subscription
Source§impl RefFromWasmAbi for Subscription
impl RefFromWasmAbi for Subscription
Source§type Anchor = RcRef<Subscription>
type Anchor = RcRef<Subscription>
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 Subscription
impl RefMutFromWasmAbi for Subscription
Source§impl TryFromJsValue for Subscription
impl TryFromJsValue for Subscription
Source§impl VectorFromWasmAbi for Subscription
impl VectorFromWasmAbi for Subscription
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Subscription]>
Source§impl VectorIntoWasmAbi for Subscription
impl VectorIntoWasmAbi for Subscription
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Subscription]>) -> Self::Abi
Source§impl WasmDescribeVector for Subscription
impl WasmDescribeVector for Subscription
impl SupportsConstructor for Subscription
impl SupportsInstanceProperty for Subscription
impl SupportsStaticProperty for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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::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.Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.