#[repr(C, packed(4))]pub struct GnetStatsRateEst64 {
pub bps: u64,
pub pps: u64,
}Available on crate feature
tc only.Fields§
§bps: u64§pps: u64Implementations§
Source§impl GnetStatsRateEst64
impl GnetStatsRateEst64
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 GnetStatsRateEst64
impl Clone for GnetStatsRateEst64
Source§impl Debug for GnetStatsRateEst64
impl Debug for GnetStatsRateEst64
Auto Trait Implementations§
impl Freeze for GnetStatsRateEst64
impl RefUnwindSafe for GnetStatsRateEst64
impl Send for GnetStatsRateEst64
impl Sync for GnetStatsRateEst64
impl Unpin for GnetStatsRateEst64
impl UnsafeUnpin for GnetStatsRateEst64
impl UnwindSafe for GnetStatsRateEst64
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