pub struct InputPacketBytesPrepared {
pub data: Box<[u8]>,
pub offset: usize,
}Fields§
§data: Box<[u8]>§offset: usizeTrait Implementations§
Source§impl Debug for InputPacketBytesPrepared
impl Debug for InputPacketBytesPrepared
Source§impl From<OutputPacketBytesVec> for InputPacketBytesPrepared
impl From<OutputPacketBytesVec> for InputPacketBytesPrepared
Source§fn from(output: OutputPacketBytesVec) -> Self
fn from(output: OutputPacketBytesVec) -> Self
Converts to this type from the input type.
Source§impl InputPacketBytes for InputPacketBytesPrepared
impl InputPacketBytes for InputPacketBytesPrepared
fn take_byte<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<u8>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn take_slice<'life0, 'life1, 'async_trait>(
&'life0 mut self,
slice: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn take_vec<'life0, 'life1, 'async_trait>(
&'life0 mut self,
vec: &'life1 mut Vec<u8>,
count: usize,
) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn has_bytes(&self, count: usize) -> bool
fn remaining_bytes(&self) -> usize
Auto Trait Implementations§
impl Freeze for InputPacketBytesPrepared
impl RefUnwindSafe for InputPacketBytesPrepared
impl Send for InputPacketBytesPrepared
impl Sync for InputPacketBytesPrepared
impl Unpin for InputPacketBytesPrepared
impl UnwindSafe for InputPacketBytesPrepared
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