[−][src]Struct neli::rtnl::Ifinfomsg
Struct representing interface information messages
Fields
ifi_family: RtAddrFamily
Interface address family
ifi_type: Arphrd
Interface type
ifi_index: c_int
Interface index
ifi_flags: Vec<Iff>
Interface flags
ifi_change: Iff
Change mask
rtattrs: Rtattrs<Ifla, Vec<u8>>
Payload of Rtattr
s
Methods
impl Ifinfomsg
[src]
pub fn new(
ifi_family: RtAddrFamily,
ifi_type: Arphrd,
ifi_index: c_int,
ifi_flags: Vec<Iff>,
ifi_change: Iff,
rtattrs: Rtattrs<Ifla, Vec<u8>>
) -> Self
[src]
ifi_family: RtAddrFamily,
ifi_type: Arphrd,
ifi_index: c_int,
ifi_flags: Vec<Iff>,
ifi_change: Iff,
rtattrs: Rtattrs<Ifla, Vec<u8>>
) -> Self
Create a fully initialized interface info struct
pub fn up(
ifi_family: RtAddrFamily,
ifi_type: Arphrd,
ifi_index: c_int,
rtattrs: Rtattrs<Ifla, Vec<u8>>
) -> Self
[src]
ifi_family: RtAddrFamily,
ifi_type: Arphrd,
ifi_index: c_int,
rtattrs: Rtattrs<Ifla, Vec<u8>>
) -> Self
Set the link with the given index up (equivalent to ip link set dev DEV up
)
pub fn down(
ifi_family: RtAddrFamily,
ifi_type: Arphrd,
ifi_index: c_int,
rtattrs: Rtattrs<Ifla, Vec<u8>>
) -> Self
[src]
ifi_family: RtAddrFamily,
ifi_type: Arphrd,
ifi_index: c_int,
rtattrs: Rtattrs<Ifla, Vec<u8>>
) -> Self
Set the link with the given index down (equivalent to ip link set dev DEV down
)
Trait Implementations
impl Debug for Ifinfomsg
[src]
impl Nl for Ifinfomsg
[src]
fn serialize(&self, buf: &mut StreamWriteBuffer) -> Result<(), SerError>
[src]
fn deserialize<B>(buf: &mut StreamReadBuffer<B>) -> Result<Self, DeError> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
fn size(&self) -> usize
[src]
fn asize(&self) -> usize
[src]
fn pad(&self, m: &mut StreamWriteBuffer) -> Result<(), SerError>
[src]
fn strip<T>(&self, m: &mut StreamReadBuffer<T>) -> Result<(), DeError> where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
Auto Trait Implementations
impl RefUnwindSafe for Ifinfomsg
impl Send for Ifinfomsg
impl Sync for Ifinfomsg
impl Unpin for Ifinfomsg
impl UnwindSafe for Ifinfomsg
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,