Trait diny_core::backend::FormatSerialize[][src]

pub trait FormatSerialize: FormatEncode {
Show 40 associated items type SerializeUnit: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeBool: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeI8: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeI16: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeI32: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeI64: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeI128: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeU8: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeU16: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeU32: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeU64: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeU128: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeF32: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeF64: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeByteSlice: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeChar: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeStr: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeString: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeVariantIdx: Future<Output = Result<(), Self::Error>> + Unpin; type SerializeSequenceLen: Future<Output = Result<(), Self::Error>> + Unpin; fn serialize_unit<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &()
    ) -> Self::SerializeUnit
    where
        W: AsyncWrite + Unpin
;
fn serialize_bool<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &bool
    ) -> Self::SerializeBool
    where
        W: AsyncWrite + Unpin
;
fn serialize_i8<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &i8
    ) -> Self::SerializeI8
    where
        W: AsyncWrite + Unpin
;
fn serialize_i16<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &i16
    ) -> Self::SerializeI16
    where
        W: AsyncWrite + Unpin
;
fn serialize_i32<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &i32
    ) -> Self::SerializeI32
    where
        W: AsyncWrite + Unpin
;
fn serialize_i64<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &i64
    ) -> Self::SerializeI64
    where
        W: AsyncWrite + Unpin
;
fn serialize_i128<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &i128
    ) -> Self::SerializeI128
    where
        W: AsyncWrite + Unpin
;
fn serialize_u8<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &u8
    ) -> Self::SerializeU8
    where
        W: AsyncWrite + Unpin
;
fn serialize_u16<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &u16
    ) -> Self::SerializeU16
    where
        W: AsyncWrite + Unpin
;
fn serialize_u32<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &u32
    ) -> Self::SerializeU32
    where
        W: AsyncWrite + Unpin
;
fn serialize_u64<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &u64
    ) -> Self::SerializeU64
    where
        W: AsyncWrite + Unpin
;
fn serialize_u128<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &u128
    ) -> Self::SerializeU128
    where
        W: AsyncWrite + Unpin
;
fn serialize_f32<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &f32
    ) -> Self::SerializeF32
    where
        W: AsyncWrite + Unpin
;
fn serialize_f64<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &f64
    ) -> Self::SerializeF64
    where
        W: AsyncWrite + Unpin
;
fn serialize_byte_slice<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &'w [u8]
    ) -> Self::SerializeByteSlice
    where
        W: AsyncWrite + Unpin
;
fn serialize_char<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &char
    ) -> Self::SerializeChar
    where
        W: AsyncWrite + Unpin
;
fn serialize_str<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &'w str
    ) -> Self::SerializeStr
    where
        W: AsyncWrite + Unpin
;
fn serialize_string<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &'w String
    ) -> Self::SerializeString
    where
        W: AsyncWrite + Unpin
;
fn serialize_variant_idx<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &VariantIdx
    ) -> Self::SerializeVariantIdx
    where
        W: AsyncWrite + Unpin
;
fn serialize_sequence_len<'w, W>(
        &'w self,
        writer: &'w mut W,
        data: &SequenceLen
    ) -> Self::SerializeSequenceLen
    where
        W: AsyncWrite + Unpin
;
}
Expand description

Define the primitive serialization methods and the concrete futures they return.

Associated Types

Required methods

Implementors