CtrlAttrTbl

Struct CtrlAttrTbl 

Source
pub struct CtrlAttrTbl<'a>(/* private fields */);

Implementations§

Source§

impl<'a> CtrlAttrTbl<'a>

Source

pub fn family_id(&self) -> Result<Option<&u16>>

Source

pub fn family_name(&self) -> Result<Option<&str>>

Source

pub fn version(&self) -> Result<Option<&u32>>

Source

pub fn hdrsize(&self) -> Result<Option<&u32>>

Source

pub fn maxattr(&self) -> Result<Option<&u32>>

Source

pub fn ops(&self) -> Result<Option<Vec<CtrlAttrOpTbl<'_>>>>

Source

pub fn mcast_groups(&self) -> Result<Option<Vec<CtrlAttrMcastGrpTbl<'_>>>>

Source

pub fn policy(&self) -> Result<Option<NetlinkPolicyTypeAttrTbl<'_>>>

Trait Implementations§

Source§

impl<'a> AttrTbl<'a> for CtrlAttrTbl<'a>

Source§

type Index = CtrlAttr

Source§

fn new() -> Self

Source§

fn _set(&mut self, i: CtrlAttr, attr: &'a Attr<'_>)

Source§

fn try_from_nlmsg(offset: usize, nlh: &'a Msghdr<'_>) -> Result<Self, Errno>

Source§

fn try_from_nest(nest: &'a Attr<'_>) -> Result<Self, Errno>

Source§

fn add( &mut self, attr: &'a Attr<'a>, count: &mut usize, ) -> Result<CbStatus, Box<dyn Error>>

Source§

fn from_nlmsg(offset: usize, nlh: &'a Msghdr<'_>) -> Result<Self, Errno>

Source§

fn from_nest(nest: &'a Attr<'_>) -> Result<Self, Errno>

Source§

impl<'a> Index<CtrlAttr> for CtrlAttrTbl<'a>

Source§

type Output = Option<&'a Attr<'a>>

The returned type after indexing.
Source§

fn index(&self, a: CtrlAttr) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<'a> IndexMut<CtrlAttr> for CtrlAttrTbl<'a>

Source§

fn index_mut(&mut self, a: CtrlAttr) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for CtrlAttrTbl<'a>

§

impl<'a> RefUnwindSafe for CtrlAttrTbl<'a>

§

impl<'a> Send for CtrlAttrTbl<'a>

§

impl<'a> Sync for CtrlAttrTbl<'a>

§

impl<'a> Unpin for CtrlAttrTbl<'a>

§

impl<'a> UnwindSafe for CtrlAttrTbl<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.