#[repr(C, packed(4))]pub struct IflaCacheinfo {
pub max_reasm_len: u32,
pub tstamp: u32,
pub reachable_time: i32,
pub retrans_time: u32,
}Available on crate feature
rt-link only.Fields§
§max_reasm_len: u32§tstamp: u32§reachable_time: i32§retrans_time: u32Implementations§
Source§impl IflaCacheinfo
impl IflaCacheinfo
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 IflaCacheinfo
impl Clone for IflaCacheinfo
Source§impl Debug for IflaCacheinfo
impl Debug for IflaCacheinfo
Auto Trait Implementations§
impl Freeze for IflaCacheinfo
impl RefUnwindSafe for IflaCacheinfo
impl Send for IflaCacheinfo
impl Sync for IflaCacheinfo
impl Unpin for IflaCacheinfo
impl UnsafeUnpin for IflaCacheinfo
impl UnwindSafe for IflaCacheinfo
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