pub struct IflaTbl<'a>(/* private fields */);
Implementations§
Source§impl<'a> IflaTbl<'a>
impl<'a> IflaTbl<'a>
pub fn address(&self) -> Result<Option<&[u8]>>
pub fn broadcast(&self) -> Result<Option<&[u8]>>
pub fn ifname(&self) -> Result<Option<&str>>
pub fn mtu(&self) -> Result<Option<&u32>>
pub fn link(&self) -> Result<Option<&u32>>
pub fn qdisc(&self) -> Result<Option<&str>>
pub fn stats(&self) -> Result<Option<&RtnlLinkStats>>
pub fn master(&self) -> Result<Option<&u32>>
pub fn wireless(&self) -> Result<Option<&[u8]>>
Trait Implementations§
Source§impl<'a> AttrTbl<'a> for IflaTbl<'a>
impl<'a> AttrTbl<'a> for IflaTbl<'a>
type Index = Ifla
fn new() -> Self
fn _set(&mut self, i: Ifla, attr: &'a Attr<'_>)
fn try_from_nlmsg(offset: usize, nlh: &'a Msghdr<'_>) -> Result<Self, Errno>
fn try_from_nest(nest: &'a Attr<'_>) -> Result<Self, Errno>
fn add( &mut self, attr: &'a Attr<'a>, count: &mut usize, ) -> Result<CbStatus, Box<dyn Error>>
fn from_nlmsg(offset: usize, nlh: &'a Msghdr<'_>) -> Result<Self, Errno>
fn from_nest(nest: &'a Attr<'_>) -> Result<Self, Errno>
Auto Trait Implementations§
impl<'a> Freeze for IflaTbl<'a>
impl<'a> RefUnwindSafe for IflaTbl<'a>
impl<'a> Send for IflaTbl<'a>
impl<'a> Sync for IflaTbl<'a>
impl<'a> Unpin for IflaTbl<'a>
impl<'a> UnwindSafe for IflaTbl<'a>
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