pub struct CsCoord { /* private fields */ }Expand description
Coordination that uses a critical section to perform coordination operations
The critical section is only taken for a short time to obtain or release grants, not for the entire duration of the grant.
Implementations§
Trait Implementations§
Source§impl Coord for CsCoord
impl Coord for CsCoord
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 CsCoord
impl RefUnwindSafe for CsCoord
impl Send for CsCoord
impl Sync for CsCoord
impl Unpin for CsCoord
impl UnsafeUnpin for CsCoord
impl UnwindSafe for CsCoord
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