pub enum Racey<U: AtomicData> {
Consistent(U),
Inconsistent,
}
Expand description
This is the result of a RaceCell read
Variants
Consistent(U)
The RaceCell was internally consistent, and its content was copied
Inconsistent
The RaceCell was internally inconsistent: a data race has occurred
Trait Implementations
sourceimpl<U: Debug + AtomicData> Debug for Racey<U>
impl<U: Debug + AtomicData> Debug for Racey<U>
impl<U: Eq + AtomicData> Eq for Racey<U>
impl<U: AtomicData> StructuralEq for Racey<U>
impl<U: AtomicData> StructuralPartialEq for Racey<U>
Auto Trait Implementations
impl<U> RefUnwindSafe for Racey<U> where
U: RefUnwindSafe,
impl<U> Send for Racey<U> where
U: Send,
impl<U> Sync for Racey<U> where
U: Sync,
impl<U> Unpin for Racey<U> where
U: Unpin,
impl<U> UnwindSafe for Racey<U> where
U: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more