Struct rtnetlink::AddressHeader [−][src]
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
impl Debug for AddressHeader
[src]
impl Debug for AddressHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for AddressHeader
[src]
impl PartialEq for AddressHeader
fn eq(&self, other: &AddressHeader) -> bool
[src]
fn eq(&self, other: &AddressHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AddressHeader) -> bool
[src]
fn ne(&self, other: &AddressHeader) -> bool
This method tests for !=
.
impl Eq for AddressHeader
[src]
impl Eq for AddressHeader
impl Clone for AddressHeader
[src]
impl Clone for AddressHeader
fn clone(&self) -> AddressHeader
[src]
fn clone(&self) -> AddressHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Emitable for AddressHeader
[src]
impl Emitable for AddressHeader
fn buffer_len(&self) -> usize
[src]
fn buffer_len(&self) -> usize
Return the length of the serialized data.
fn emit(&self, buffer: &mut [u8])
[src]
fn emit(&self, buffer: &mut [u8])
Serialize this types and write the serialized data into the given buffer. Read more
impl<T: AsRef<[u8]>> Parseable<AddressHeader> for AddressBuffer<T>
[src]
impl<T: AsRef<[u8]>> Parseable<AddressHeader> for AddressBuffer<T>
fn parse(&self) -> Result<AddressHeader>
[src]
fn parse(&self) -> Result<AddressHeader>
Deserialize the current type.
Auto Trait Implementations
impl Send for AddressHeader
impl Send for AddressHeader
impl Sync for AddressHeader
impl Sync for AddressHeader