Struct netlink_packet_route::tc::TcNatBuffer
source · pub struct TcNatBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> TcNatBuffer<T>
impl<T: AsRef<[u8]>> TcNatBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> TcNatBuffer<&'a mut T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> TcNatBuffer<&'a mut T>
pub fn generic_mut(&mut self) -> &mut [u8] ⓘ
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> TcNatBuffer<&'a mut T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> TcNatBuffer<&'a mut T>
pub fn old_addr_mut(&mut self) -> &mut [u8] ⓘ
source§impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> TcNatBuffer<&'a mut T>
impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> TcNatBuffer<&'a mut T>
pub fn new_addr_mut(&mut self) -> &mut [u8] ⓘ
source§impl<T: AsRef<[u8]>> TcNatBuffer<T>
impl<T: AsRef<[u8]>> TcNatBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for TcNatBuffer<T>
impl<T: Clone> Clone for TcNatBuffer<T>
source§fn clone(&self) -> TcNatBuffer<T>
fn clone(&self) -> TcNatBuffer<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 TcNatBuffer<T>
impl<T: Debug> Debug for TcNatBuffer<T>
source§impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<TcNatBuffer<&'a T>> for TcNat
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<TcNatBuffer<&'a T>> for TcNat
source§fn parse(buf: &TcNatBuffer<&T>) -> Result<Self, DecodeError>
fn parse(buf: &TcNatBuffer<&T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq for TcNatBuffer<T>
impl<T: PartialEq> PartialEq for TcNatBuffer<T>
source§fn eq(&self, other: &TcNatBuffer<T>) -> bool
fn eq(&self, other: &TcNatBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for TcNatBuffer<T>
impl<T: Eq> Eq for TcNatBuffer<T>
impl<T> StructuralEq for TcNatBuffer<T>
impl<T> StructuralPartialEq for TcNatBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TcNatBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for TcNatBuffer<T>where
T: Send,
impl<T> Sync for TcNatBuffer<T>where
T: Sync,
impl<T> Unpin for TcNatBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for TcNatBuffer<T>where
T: UnwindSafe,
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