pub struct AtomicFileSyncType(/* private fields */);Expand description
Atomic wrapper for #name
Implementations§
Source§impl AtomicFileSyncType
impl AtomicFileSyncType
Sourcepub const fn new(val: FileSyncType) -> Self
pub const fn new(val: FileSyncType) -> Self
Create new atomic enum with initial value
Sourcepub fn get(&self) -> FileSyncType
pub fn get(&self) -> FileSyncType
Load and convert the current value to expected enum
Sourcepub fn set(&self, val: FileSyncType)
pub fn set(&self, val: FileSyncType)
Convert and store new value
Sourcepub fn swap(&self, val: FileSyncType) -> FileSyncType
pub fn swap(&self, val: FileSyncType) -> FileSyncType
Store new value and return previous value
Trait Implementations§
Source§impl Debug for AtomicFileSyncType
impl Debug for AtomicFileSyncType
Source§impl From<FileSyncType> for AtomicFileSyncType
impl From<FileSyncType> for AtomicFileSyncType
Source§fn from(val: FileSyncType) -> Self
fn from(val: FileSyncType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AtomicFileSyncType
impl RefUnwindSafe for AtomicFileSyncType
impl Send for AtomicFileSyncType
impl Sync for AtomicFileSyncType
impl Unpin for AtomicFileSyncType
impl UnsafeUnpin for AtomicFileSyncType
impl UnwindSafe for AtomicFileSyncType
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more