pub struct VolatileBuffer<const N: usize> { /* private fields */ }Implementations§
Source§impl<const N: usize> VolatileBuffer<N>
impl<const N: usize> VolatileBuffer<N>
pub fn new() -> Self
pub fn avail_space(&self) -> usize
pub fn pending_bytes(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn sync_for_pending_data(&self) -> ThreadSyncSleep
pub fn sync_for_avail_space(&self) -> ThreadSyncSleep
pub fn read_bytes(&self, buf: &mut [u8]) -> Result<usize>
pub fn write_bytes(&self, buf: &[u8]) -> Result<usize>
Trait Implementations§
impl<const N: usize> Send for VolatileBuffer<N>
impl<const N: usize> Sync for VolatileBuffer<N>
Auto Trait Implementations§
impl<const N: usize> !Freeze for VolatileBuffer<N>
impl<const N: usize> !RefUnwindSafe for VolatileBuffer<N>
impl<const N: usize> StoreCopy for VolatileBuffer<N>
impl<const N: usize> Unpin for VolatileBuffer<N>
impl<const N: usize> UnwindSafe for VolatileBuffer<N>
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