Struct netlink_packet_route::rtnl::address::AddressHeader
source · pub struct AddressHeader {
pub family: u8,
pub prefix_len: u8,
pub flags: u8,
pub scope: u8,
pub index: u32,
}
Fields§
§family: u8
§prefix_len: u8
§flags: u8
§scope: u8
§index: u32
Trait Implementations§
source§impl Clone for AddressHeader
impl Clone for AddressHeader
source§fn clone(&self) -> AddressHeader
fn clone(&self) -> AddressHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AddressHeader
impl Debug for AddressHeader
source§impl Default for AddressHeader
impl Default for AddressHeader
source§fn default() -> AddressHeader
fn default() -> AddressHeader
Returns the “default value” for a type. Read more
source§impl Emitable for AddressHeader
impl Emitable for AddressHeader
source§impl<T: AsRef<[u8]>> Parseable<AddressMessageBuffer<T>> for AddressHeader
impl<T: AsRef<[u8]>> Parseable<AddressMessageBuffer<T>> for AddressHeader
source§fn parse(buf: &AddressMessageBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &AddressMessageBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for AddressHeader
impl PartialEq for AddressHeader
source§fn eq(&self, other: &AddressHeader) -> bool
fn eq(&self, other: &AddressHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AddressHeader
impl StructuralPartialEq for AddressHeader
Auto Trait Implementations§
impl Freeze for AddressHeader
impl RefUnwindSafe for AddressHeader
impl Send for AddressHeader
impl Sync for AddressHeader
impl Unpin for AddressHeader
impl UnwindSafe for AddressHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)