Struct netlink_packet_route::address::AddressHeader
source · pub struct AddressHeader {
pub family: AddressFamily,
pub prefix_len: u8,
pub flags: Vec<AddressHeaderFlag>,
pub scope: AddressScope,
pub index: u32,
}
Fields§
§family: AddressFamily
§prefix_len: u8
§flags: Vec<AddressHeaderFlag>
§scope: AddressScope
§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 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