pub struct AtomicCoord { /* private fields */ }Expand description
Coordination using CAS atomics
Implementations§
Source§impl AtomicCoord
impl AtomicCoord
Trait Implementations§
Source§impl Coord for AtomicCoord
impl Coord for AtomicCoord
Source§fn grant_max_remaining(
&self,
capacity: usize,
sz: usize,
) -> Result<(usize, usize), WriteGrantError>
fn grant_max_remaining( &self, capacity: usize, sz: usize, ) -> Result<(usize, usize), WriteGrantError>
Source§fn grant_exact(
&self,
capacity: usize,
sz: usize,
) -> Result<usize, WriteGrantError>
fn grant_exact( &self, capacity: usize, sz: usize, ) -> Result<usize, WriteGrantError>
Obtain a grant of EXACTLY
sz bytes. Read moreSource§fn commit_inner(&self, capacity: usize, grant_len: usize, used: usize)
fn commit_inner(&self, capacity: usize, grant_len: usize, used: usize)
Make
used bytes availableSource§fn release_inner(&self, used: usize)
fn release_inner(&self, used: usize)
Mark
used bytes as available for writingAuto Trait Implementations§
impl !Freeze for AtomicCoord
impl RefUnwindSafe for AtomicCoord
impl Send for AtomicCoord
impl Sync for AtomicCoord
impl Unpin for AtomicCoord
impl UnsafeUnpin for AtomicCoord
impl UnwindSafe for AtomicCoord
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