pub struct RcuAtomic<T: AsAtomic> { /* private fields */ }Implementations§
Source§impl<T: AsAtomic> RcuAtomic<T>
impl<T: AsAtomic> RcuAtomic<T>
pub fn new(value: T) -> Self
Sourcepub fn write(&self, value: T)
pub fn write(&self, value: T)
Basic write operation: takes the mutex and updates both the mutex value and the atomic.
Sourcepub fn copy(&self) -> RcuAtomicGuard<'_, T>
pub fn copy(&self) -> RcuAtomicGuard<'_, T>
Takes the mutex and returns a guard that can be used to read and modify the value.
Updates are only committed to the atomic when update is called on the guard.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for RcuAtomic<T>
impl<T> !RefUnwindSafe for RcuAtomic<T>
impl<T> Send for RcuAtomic<T>
impl<T> Sync for RcuAtomic<T>
impl<T> Unpin for RcuAtomic<T>
impl<T> UnsafeUnpin for RcuAtomic<T>
impl<T> UnwindSafe for RcuAtomic<T>
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<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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