pub struct EncodedFrame<T> { /* private fields */ }Expand description
An encoded frame exposed as a Buf.
Trait Implementations§
Source§impl<T: AsRef<[u8]>> Buf for EncodedFrame<T>
impl<T: AsRef<[u8]>> Buf for EncodedFrame<T>
Source§fn advance(&mut self, n: usize)
fn advance(&mut self, n: usize)
Advance the internal cursor of the buffer by
n bytes. Read moreSource§fn has_remaining(&self) -> bool
fn has_remaining(&self) -> bool
Check whether the buffer has any data left in it.
Source§fn copy_to_slice(&mut self, slice: &mut [u8]) -> usize
fn copy_to_slice(&mut self, slice: &mut [u8]) -> usize
Copy data from the buffer into
slice advancing the buffer accordingly.Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Create a “by reference” adapter that takes the current instance of
Buf
by mutable reference.Source§impl<T: Clone> Clone for EncodedFrame<T>
impl<T: Clone> Clone for EncodedFrame<T>
Source§fn clone(&self) -> EncodedFrame<T>
fn clone(&self) -> EncodedFrame<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> Freeze for EncodedFrame<T>where
T: Freeze,
impl<T> RefUnwindSafe for EncodedFrame<T>where
T: RefUnwindSafe,
impl<T> Send for EncodedFrame<T>where
T: Send,
impl<T> Sync for EncodedFrame<T>where
T: Sync,
impl<T> Unpin for EncodedFrame<T>where
T: Unpin,
impl<T> UnwindSafe for EncodedFrame<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