#[repr(C, packed(4))]pub struct RtaCacheinfo {
pub rta_clntref: u32,
pub rta_lastuse: u32,
pub rta_expires: u32,
pub rta_error: u32,
pub rta_used: u32,
}Available on crate feature
rt-route only.Fields§
§rta_clntref: u32§rta_lastuse: u32§rta_expires: u32§rta_error: u32§rta_used: u32Implementations§
Source§impl RtaCacheinfo
impl RtaCacheinfo
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; 20]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 20]
pub fn from_array(buf: &[u8; 20]) -> &Self
pub fn into_array(self) -> [u8; 20]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for RtaCacheinfo
impl Clone for RtaCacheinfo
Source§impl Debug for RtaCacheinfo
impl Debug for RtaCacheinfo
Auto Trait Implementations§
impl Freeze for RtaCacheinfo
impl RefUnwindSafe for RtaCacheinfo
impl Send for RtaCacheinfo
impl Sync for RtaCacheinfo
impl Unpin for RtaCacheinfo
impl UnsafeUnpin for RtaCacheinfo
impl UnwindSafe for RtaCacheinfo
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