Struct netlink_packet_route::rtnl::tc::nlas::TcGenBuffer
source · [−]pub struct TcGenBuffer<T> { /* private fields */ }
Implementations
sourceimpl<T: AsRef<[u8]>> TcGenBuffer<T>
impl<T: AsRef<[u8]>> TcGenBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
sourceimpl<'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)
sourceimpl<'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)
sourceimpl<'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)
sourceimpl<T: AsRef<[u8]>> TcGenBuffer<T>
impl<T: AsRef<[u8]>> TcGenBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations
sourceimpl<T: Clone> Clone for TcGenBuffer<T>
impl<T: Clone> Clone for TcGenBuffer<T>
sourcefn clone(&self) -> TcGenBuffer<T>
fn clone(&self) -> TcGenBuffer<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for TcGenBuffer<T>
impl<T: Debug> Debug for TcGenBuffer<T>
sourceimpl<T: AsRef<[u8]>> Parseable<TcGenBuffer<T>> for TcGen
impl<T: AsRef<[u8]>> Parseable<TcGenBuffer<T>> for TcGen
sourcefn parse(buf: &TcGenBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &TcGenBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
sourceimpl<T: PartialEq> PartialEq<TcGenBuffer<T>> for TcGenBuffer<T>
impl<T: PartialEq> PartialEq<TcGenBuffer<T>> for TcGenBuffer<T>
sourcefn eq(&self, other: &TcGenBuffer<T>) -> bool
fn eq(&self, other: &TcGenBuffer<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TcGenBuffer<T>) -> bool
fn ne(&self, other: &TcGenBuffer<T>) -> bool
This method tests for !=
.
impl<T: Copy> Copy for TcGenBuffer<T>
impl<T: Eq> Eq for TcGenBuffer<T>
impl<T> StructuralEq for TcGenBuffer<T>
impl<T> StructuralPartialEq for TcGenBuffer<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for TcGenBuffer<T> where
T: RefUnwindSafe,
impl<T> Send for TcGenBuffer<T> where
T: Send,
impl<T> Sync for TcGenBuffer<T> where
T: Sync,
impl<T> Unpin for TcGenBuffer<T> where
T: Unpin,
impl<T> UnwindSafe for TcGenBuffer<T> where
T: UnwindSafe,
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