#[repr(C, packed(4))]pub struct Ifinfomsg {
pub ifi_family: u8,
pub _pad: [u8; 1],
pub ifi_type: u16,
pub ifi_index: i32,
pub ifi_flags: u32,
pub ifi_change: u32,
}Available on crate feature
rt-link only.Fields§
§ifi_family: u8§_pad: [u8; 1]§ifi_type: u16§ifi_index: i32§ifi_flags: u32Associated type: IfinfoFlags (1 bit per enumeration)
ifi_change: u32Implementations§
Source§impl Ifinfomsg
impl Ifinfomsg
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§
Auto Trait Implementations§
impl Freeze for Ifinfomsg
impl RefUnwindSafe for Ifinfomsg
impl Send for Ifinfomsg
impl Sync for Ifinfomsg
impl Unpin for Ifinfomsg
impl UnsafeUnpin for Ifinfomsg
impl UnwindSafe for Ifinfomsg
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