#[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
type Error = DecodeError
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 for DoneBuffer<T>
impl<T: PartialEq> PartialEq for DoneBuffer<T>
impl<T: Eq> Eq for DoneBuffer<T>
impl<T> StructuralPartialEq for DoneBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for DoneBuffer<T>where
T: Freeze,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)