pub struct NetlinkRouteAttr {
pub rt_attr: RtAttr,
pub value: Vec<u8>,
pub children: Option<Vec<Box<dyn NetlinkRequestData>>>,
}Fields§
§rt_attr: RtAttr§value: Vec<u8>§children: Option<Vec<Box<dyn NetlinkRequestData>>>Implementations§
Source§impl NetlinkRouteAttr
impl NetlinkRouteAttr
pub fn new(rta_type: u16, value: Vec<u8>) -> Self
pub fn map(buf: &[u8]) -> Result<HashMap<u16, Vec<u8>>>
pub fn from(buf: &[u8]) -> Result<Vec<Self>>
pub fn add_child(&mut self, rta_type: u16, value: Vec<u8>)
pub fn add_child_from_attr( &mut self, attr: Box<impl NetlinkRequestData + 'static>, )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NetlinkRouteAttr
impl !Send for NetlinkRouteAttr
impl !Sync for NetlinkRouteAttr
impl !UnwindSafe for NetlinkRouteAttr
impl Freeze for NetlinkRouteAttr
impl Unpin for NetlinkRouteAttr
impl UnsafeUnpin for NetlinkRouteAttr
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