pub struct LiteStorage<S: State> { /* private fields */ }Expand description
Storage for State-encodable types using only AtomicU8
使用 AtomicU8 存储 State 可编码类型
Trait Implementations§
Source§impl<S: State> OneshotStorage for LiteStorage<S>
impl<S: State> OneshotStorage for LiteStorage<S>
Source§fn try_take(&self) -> TakeResult<S>
fn try_take(&self) -> TakeResult<S>
Try to take the stored value (called by receiver)
Source§fn is_sender_dropped(&self) -> bool
fn is_sender_dropped(&self) -> bool
Check if the sender was dropped without sending
Source§fn mark_sender_dropped(&self)
fn mark_sender_dropped(&self)
Mark as sender dropped (called in Sender::drop)
Source§fn is_receiver_closed(&self) -> bool
fn is_receiver_closed(&self) -> bool
Check if the receiver was closed Read more
Source§fn mark_receiver_closed(&self)
fn mark_receiver_closed(&self)
Mark as receiver closed (called in Receiver::close) Read more
impl<S: State> Send for LiteStorage<S>
impl<S: State> Sync for LiteStorage<S>
Auto Trait Implementations§
impl<S> !Freeze for LiteStorage<S>
impl<S> RefUnwindSafe for LiteStorage<S>where
S: RefUnwindSafe,
impl<S> Unpin for LiteStorage<S>where
S: Unpin,
impl<S> UnwindSafe for LiteStorage<S>where
S: 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