pub struct ShardState<T> { /* private fields */ }Expand description
Typed shard state handle.
This is a lightweight Copy handle backed by shard-managed storage.
The actual value is hosted in a global slot table and validated via
generation to prevent ABA stale access.
Implementations§
Trait Implementations§
Source§impl<T> Clone for ShardState<T>
impl<T> Clone for ShardState<T>
Source§impl<T> Hash for ShardState<T>
impl<T> Hash for ShardState<T>
Source§impl<T> PartialEq for ShardState<T>
impl<T> PartialEq for ShardState<T>
impl<T> Copy for ShardState<T>
impl<T> Eq for ShardState<T>
Auto Trait Implementations§
impl<T> Freeze for ShardState<T>
impl<T> RefUnwindSafe for ShardState<T>where
T: RefUnwindSafe,
impl<T> Send for ShardState<T>where
T: Send,
impl<T> Sync for ShardState<T>where
T: Sync,
impl<T> Unpin for ShardState<T>where
T: Unpin,
impl<T> UnwindSafe for ShardState<T>where
T: UnwindSafe,
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,
§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