Struct netlink_packet_core::done::DoneBuffer
source · #[non_exhaustive]pub struct DoneBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> DoneBuffer<T>
impl<T: AsRef<[u8]>> DoneBuffer<T>
pub fn new(buffer: T) -> DoneBuffer<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the packet, returning the underlying buffer.
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
source§impl<'a, T: AsRef<[u8]> + ?Sized> DoneBuffer<&'a T>
impl<'a, T: AsRef<[u8]> + ?Sized> DoneBuffer<&'a T>
sourcepub fn extended_ack(&self) -> &'a [u8] ⓘ
pub fn extended_ack(&self) -> &'a [u8] ⓘ
Return a pointer to the extended ack attributes.
Trait Implementations§
source§impl<T: Clone> Clone for DoneBuffer<T>
impl<T: Clone> Clone for DoneBuffer<T>
source§fn clone(&self) -> DoneBuffer<T>
fn clone(&self) -> DoneBuffer<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 DoneBuffer<T>
impl<T: Debug> Debug for DoneBuffer<T>
source§impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<DoneBuffer<&'buffer T>> for DoneMessage
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<DoneBuffer<&'buffer T>> for DoneMessage
source§fn parse(buf: &DoneBuffer<&'buffer T>) -> Result<DoneMessage, DecodeError>
fn parse(buf: &DoneBuffer<&'buffer T>) -> Result<DoneMessage, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq<DoneBuffer<T>> for DoneBuffer<T>
impl<T: PartialEq> PartialEq<DoneBuffer<T>> for DoneBuffer<T>
source§fn eq(&self, other: &DoneBuffer<T>) -> bool
fn eq(&self, other: &DoneBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for DoneBuffer<T>
impl<T> StructuralEq for DoneBuffer<T>
impl<T> StructuralPartialEq for DoneBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for DoneBuffer<T>where T: RefUnwindSafe,
impl<T> Send for DoneBuffer<T>where T: Send,
impl<T> Sync for DoneBuffer<T>where T: Sync,
impl<T> Unpin for DoneBuffer<T>where T: Unpin,
impl<T> UnwindSafe for DoneBuffer<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