pub struct SharedRingBuffer { /* private fields */ }Expand description
ring buffer for efficient KM<->UM data transfer
Implementations§
Sourcepub fn init(memory: &mut SharedMemory) -> KmResult<&mut Self>
pub fn init(memory: &mut SharedMemory) -> KmResult<&mut Self>
create in shared memory
Sourcepub fn available_write(&self) -> u32
pub fn available_write(&self) -> u32
available space for writing
Sourcepub fn available_read(&self) -> u32
pub fn available_read(&self) -> u32
available data for reading
Auto Trait Implementations§
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