[−][src]Struct netlink_packet_route::rtnl::LinkHeader
High level representation of RTM_GETLINK, RTM_SETLINK, RTM_NEWLINK and RTM_DELLINK
messages headers.
These headers have the following structure:
0 8 16 24 32
+----------------+----------------+----------------+----------------+
|interface family| reserved | link layer type |
+----------------+----------------+----------------+----------------+
| link index |
+----------------+----------------+----------------+----------------+
| flags |
+----------------+----------------+----------------+----------------+
| change mask |
+----------------+----------------+----------------+----------------+
LinkHeader exposes all these fields except for the "reserved" one.
Fields
interface_family: u8Address family: one of the AF_* constants.
index: u32Link index.
link_layer_type: u16Link type. It should be set to one of the ARPHRD_*
constants. The most common value is ARPHRD_ETHER for
Ethernet.
flags: u32State of the link, described by a combinations of IFF_*
constants, for instance IFF_UP | IFF_LOWER_UP.
change_mask: u32Change mask for the flags field. Reserved, it should be set
to 0xffff_ffff.
Trait Implementations
impl Clone for LinkHeader[src]
fn clone(&self) -> LinkHeader[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for LinkHeader[src]
impl Default for LinkHeader[src]
fn default() -> LinkHeader[src]
impl Emitable for LinkHeader[src]
impl Eq for LinkHeader[src]
impl<T: AsRef<[u8]>> Parseable<LinkMessageBuffer<T>> for LinkHeader[src]
fn parse(buf: &LinkMessageBuffer<T>) -> Result<Self, DecodeError>[src]
impl PartialEq<LinkHeader> for LinkHeader[src]
fn eq(&self, other: &LinkHeader) -> bool[src]
fn ne(&self, other: &LinkHeader) -> bool[src]
impl StructuralEq for LinkHeader[src]
impl StructuralPartialEq for LinkHeader[src]
Auto Trait Implementations
impl RefUnwindSafe for LinkHeader
impl Send for LinkHeader
impl Sync for LinkHeader
impl Unpin for LinkHeader
impl UnwindSafe for LinkHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Emitable for T where
T: Nla, [src]
T: Nla,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,