#[repr(C, packed(4))]pub struct GnetStatsBasic {
pub bytes: u64,
pub packets: u32,
pub _pad_12: [u8; 4],
}Available on crate feature
tc only.Fields§
§bytes: u64§packets: u32§_pad_12: [u8; 4]Implementations§
Source§impl GnetStatsBasic
impl GnetStatsBasic
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 16]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 16]
pub fn from_array(buf: &[u8; 16]) -> &Self
pub fn into_array(self) -> [u8; 16]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for GnetStatsBasic
impl Clone for GnetStatsBasic
Source§impl Debug for GnetStatsBasic
impl Debug for GnetStatsBasic
Auto Trait Implementations§
impl Freeze for GnetStatsBasic
impl RefUnwindSafe for GnetStatsBasic
impl Send for GnetStatsBasic
impl Sync for GnetStatsBasic
impl Unpin for GnetStatsBasic
impl UnsafeUnpin for GnetStatsBasic
impl UnwindSafe for GnetStatsBasic
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