Fields
data: *mut u8
len: usize
data_len: usize
Implementations
sourceimpl NicBuffer
impl NicBuffer
pub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn packet_len(&self) -> usize
pub fn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn allocate(len: usize) -> Self
pub fn set_len(&mut self, len: usize)
pub fn write_layer_headers(&mut self, start: usize, hdrs: &[&dyn Header]) -> usize
pub unsafe fn get_minimal_header<T: Header>(&self, off: usize) -> T
Trait Implementations
impl Send for NicBuffer
impl Sync for NicBuffer
Auto Trait Implementations
impl !ObjSafe for NicBuffer
impl RefUnwindSafe for NicBuffer
impl Unpin for NicBuffer
impl UnwindSafe for NicBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more