pub struct AddrInfo {
pub index: u32,
pub family: u8,
pub prefix_len: u8,
pub addr_v4: Ipv4Address,
}Expand description
IP address entry (serialized in NewAddr responses)
Fields§
§index: u32Interface index
family: u8Address family (2=AF_INET, 10=AF_INET6)
prefix_len: u8Prefix length (e.g. 24 for /24)
addr_v4: Ipv4AddressIPv4 address (if family == 2)
Implementations§
Source§impl AddrInfo
impl AddrInfo
Sourcepub fn deserialize(buf: &[u8]) -> Result<Self, KernelError>
pub fn deserialize(buf: &[u8]) -> Result<Self, KernelError>
Deserialize from payload bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddrInfo
impl RefUnwindSafe for AddrInfo
impl Send for AddrInfo
impl Sync for AddrInfo
impl Unpin for AddrInfo
impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)