Struct leptos_reactive::RuntimeId
source · pub struct RuntimeId(/* private fields */);
Expand description
Unique ID assigned to a Runtime.
Implementations§
source§impl RuntimeId
impl RuntimeId
sourcepub fn dispose(self)
pub fn dispose(self)
Removes the runtime, disposing of everything created in it.
§Panics
Panics if the reactive runtime you’re trying to dispose is not found. This would suggest either that you’re trying to dispose of it twice, or that it was created in a different thread; panicking here indicates a memory leak.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RuntimeId
impl<'de> Deserialize<'de> for RuntimeId
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Key for RuntimeId
impl Key for RuntimeId
source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!
, which calls this
method). Read moresource§impl Ord for RuntimeId
impl Ord for RuntimeId
source§impl PartialOrd for RuntimeId
impl PartialOrd for RuntimeId
impl Copy for RuntimeId
impl Eq for RuntimeId
impl StructuralPartialEq for RuntimeId
Auto Trait Implementations§
impl Freeze for RuntimeId
impl RefUnwindSafe for RuntimeId
impl Send for RuntimeId
impl Sync for RuntimeId
impl Unpin for RuntimeId
impl UnwindSafe for RuntimeId
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.