#[repr(C, packed(4))]pub struct Ifaddrmsg {
pub ifa_family: u8,
pub ifa_prefixlen: u8,
pub ifa_flags: u8,
pub ifa_scope: u8,
pub ifa_index: u32,
}Available on crate feature
rt-addr only.Fields§
§ifa_family: u8§ifa_prefixlen: u8§ifa_flags: u8Associated type: IfaFlags (1 bit per enumeration)
ifa_scope: u8§ifa_index: u32Implementations§
Source§impl Ifaddrmsg
impl Ifaddrmsg
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; 8]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 8]
pub fn from_array(buf: &[u8; 8]) -> &Self
pub fn into_array(self) -> [u8; 8]
pub const fn len() -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ifaddrmsg
impl RefUnwindSafe for Ifaddrmsg
impl Send for Ifaddrmsg
impl Sync for Ifaddrmsg
impl Unpin for Ifaddrmsg
impl UnsafeUnpin for Ifaddrmsg
impl UnwindSafe for Ifaddrmsg
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