Struct netlink_packet_route::rtnl::TcMessage
source · [−]Fields
header: TcHeader
nlas: Vec<Nla>
Implementations
sourceimpl TcMessage
impl TcMessage
pub fn into_parts(self) -> (TcHeader, Vec<Nla>)
pub fn from_parts(header: TcHeader, nlas: Vec<Nla>) -> Self
sourcepub fn with_index(index: i32) -> Self
pub fn with_index(index: i32) -> Self
Create a new TcMessage
with the given index
Trait Implementations
sourceimpl<'a, T: AsRef<[u8]> + 'a> Parseable<TcMessageBuffer<&'a T>> for TcMessage
impl<'a, T: AsRef<[u8]> + 'a> Parseable<TcMessageBuffer<&'a T>> for TcMessage
sourcefn parse(buf: &TcMessageBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &TcMessageBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
impl Eq for TcMessage
impl StructuralEq for TcMessage
impl StructuralPartialEq for TcMessage
Auto Trait Implementations
impl RefUnwindSafe for TcMessage
impl Send for TcMessage
impl Sync for TcMessage
impl Unpin for TcMessage
impl UnwindSafe for TcMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more