pub struct RawData(_);Implementations
Trait Implementations
sourceimpl AsyncInlinable for RawData
impl AsyncInlinable for RawData
sourcefn read_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
fn read_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
Read inlined bytes into object.
sourcefn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Write inlined bytes to a writer.
fn read_optional_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>> where
Self: Sized,
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: Send + 'async_trait,
sourcefn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Write inlined bytes with specific options
sourceimpl From<raw_data_t> for RawData
impl From<raw_data_t> for RawData
sourcefn from(raw: raw_data_t) -> Self
fn from(raw: raw_data_t) -> Self
Converts to this type from the input type.
sourceimpl Inlinable for RawData
impl Inlinable for RawData
sourcefn read_inlined<R: Read>(reader: &mut R) -> Result<Self>
fn read_inlined<R: Read>(reader: &mut R) -> Result<Self>
Read inlined bytes into object.
sourcefn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts
) -> Result<usize>
fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts
) -> Result<usize>
Write inlined bytes with specific options
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
impl Send for RawData
impl Sync for RawData
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more