pub struct ManagedBuffer<'a> { /* private fields */ }
Implementations§
source§impl<'a> ManagedBuffer<'a>
impl<'a> ManagedBuffer<'a>
pub fn new_unowned( controller: &'a BufferController, idx: u32, len: usize, ) -> Self
pub fn buffer_len(&self) -> usize
pub fn set_len(&mut self, len: usize)
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes_mut(&self) -> &mut [u8] ⓘ
pub fn copy_in(&mut self, data: &[u8])
pub fn as_packet_data(&self) -> PacketData
pub fn get_data_mut<T>(&mut self, offset: usize) -> &mut MaybeUninit<T>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ManagedBuffer<'a>
impl<'a> !ObjSafe for ManagedBuffer<'a>
impl<'a> RefUnwindSafe for ManagedBuffer<'a>
impl<'a> Send for ManagedBuffer<'a>
impl<'a> Sync for ManagedBuffer<'a>
impl<'a> Unpin for ManagedBuffer<'a>
impl<'a> UnwindSafe for ManagedBuffer<'a>
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