pub struct Ifaddrmsg {
pub ifa_family: RtAddrFamily,
pub ifa_prefixlen: c_uchar,
pub ifa_flags: IfaFFlags,
pub ifa_scope: c_uchar,
pub ifa_index: c_int,
pub rtattrs: RtBuffer<Ifa, Buffer>,
}
Expand description
Struct representing interface address messages
Fields§
§ifa_family: RtAddrFamily
Interface address family
ifa_prefixlen: c_uchar
Interface address prefix length
ifa_flags: IfaFFlags
Interface address flags
ifa_scope: c_uchar
Interface address scope
ifa_index: c_int
Interface address index
rtattrs: RtBuffer<Ifa, Buffer>
Payload of Rtattr
s
Trait Implementations§
Source§impl<'lifetime> FromBytesWithInput<'lifetime> for Ifaddrmsg
impl<'lifetime> FromBytesWithInput<'lifetime> for Ifaddrmsg
Source§impl Header for Ifaddrmsg
impl Header for Ifaddrmsg
Source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
Source§impl Size for Ifaddrmsg
impl Size for Ifaddrmsg
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of of the payload and align it to
the required netlink byte alignment.
Auto Trait Implementations§
impl Freeze for Ifaddrmsg
impl RefUnwindSafe for Ifaddrmsg
impl Send for Ifaddrmsg
impl Sync for Ifaddrmsg
impl Unpin 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