pub struct AtomicCheck;Expand description
Check strategy that accesses and updates state atomically.
Trait Implementations§
Source§impl CheckedPolicy for AtomicCheck
impl CheckedPolicy for AtomicCheck
Source§fn assert_initialized(state: &Self::State)
fn assert_initialized(state: &Self::State)
Asserts that the instance has been initialized. Read more
Source§impl Policy for AtomicCheck
impl Policy for AtomicCheck
Source§const UNINIT_STATE: Self::State
const UNINIT_STATE: Self::State
An instance of state in the uninitialized condition.
Auto Trait Implementations§
impl Freeze for AtomicCheck
impl RefUnwindSafe for AtomicCheck
impl Send for AtomicCheck
impl Sync for AtomicCheck
impl Unpin for AtomicCheck
impl UnsafeUnpin for AtomicCheck
impl UnwindSafe for AtomicCheck
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more