pub enum ShardStateLifeCycle {
Application,
Shard,
}
Expand description
Describes the lifecycle of this ShardState.
The lifecycle of ShardState can be divided into two types:
- Application: ShardState exists for the lifetime of the application and will not be destroyed.
- Shard: ShardState’s lifecycle matches the navigation target, meaning it will be destroyed when the page is popped.
Variants§
Application
ShardState exists for the lifetime of the application and will not be destroyed.
Shard
ShardState’s lifecycle matches the navigation target, meaning it will be destroyed when the page is popped.
Trait Implementations§
Source§impl Debug for ShardStateLifeCycle
impl Debug for ShardStateLifeCycle
Source§impl PartialEq for ShardStateLifeCycle
impl PartialEq for ShardStateLifeCycle
impl Eq for ShardStateLifeCycle
impl StructuralPartialEq for ShardStateLifeCycle
Auto Trait Implementations§
impl Freeze for ShardStateLifeCycle
impl RefUnwindSafe for ShardStateLifeCycle
impl Send for ShardStateLifeCycle
impl Sync for ShardStateLifeCycle
impl Unpin for ShardStateLifeCycle
impl UnwindSafe for ShardStateLifeCycle
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more