Struct netlink_packet_route::rtnl::tc::nlas::TcGenBuffer
source · pub struct TcGenBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> TcGenBuffer<T>
impl<T: AsRef<[u8]>> TcGenBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcGenBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcGenBuffer<T>
pub fn set_action(&mut self, value: i32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcGenBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcGenBuffer<T>
pub fn set_refcnt(&mut self, value: i32)
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcGenBuffer<T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]>> TcGenBuffer<T>
pub fn set_bindcnt(&mut self, value: i32)
source§impl<T: AsRef<[u8]>> TcGenBuffer<T>
impl<T: AsRef<[u8]>> TcGenBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for TcGenBuffer<T>
impl<T: Clone> Clone for TcGenBuffer<T>
source§fn clone(&self) -> TcGenBuffer<T>
fn clone(&self) -> TcGenBuffer<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for TcGenBuffer<T>
impl<T: Debug> Debug for TcGenBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<TcGenBuffer<T>> for TcGen
impl<T: AsRef<[u8]>> Parseable<TcGenBuffer<T>> for TcGen
source§fn parse(buf: &TcGenBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &TcGenBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.