pub struct pkt_buf_handle_t { /* private fields */ }Expand description
pkt_buf_handle_t, packet Buffer Handle
Implementations§
Source§impl pkt_buf_handle_t
impl pkt_buf_handle_t
pub fn new_zero() -> pkt_buf_handle_t
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_ptr(&self) -> *const u8
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn set_len(&mut self, len: usize)
pub fn extend_from_slice(&mut self, buf: &[u8])
pub fn is_valid_buffer(&self) -> bool
Trait Implementations§
Source§impl Clone for pkt_buf_handle_t
impl Clone for pkt_buf_handle_t
Source§impl Debug for pkt_buf_handle_t
impl Debug for pkt_buf_handle_t
Source§impl Display for pkt_buf_handle_t
impl Display for pkt_buf_handle_t
Auto Trait Implementations§
impl Freeze for pkt_buf_handle_t
impl RefUnwindSafe for pkt_buf_handle_t
impl !Send for pkt_buf_handle_t
impl !Sync for pkt_buf_handle_t
impl Unpin for pkt_buf_handle_t
impl UnwindSafe for pkt_buf_handle_t
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