Trait FormatSerialize

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

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

Required Associated Types§

Source

type SerializeUnit<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeBool<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeI8<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeI16<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeI32<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeI64<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeI128<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeU8<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeU16<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeU32<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeU64<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeU128<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeF32<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeF64<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeByteSlice<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeChar<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeStr<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeString<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeVariantIdx<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Source

type SerializeSequenceLen<'w, W>: Future<Output = Result<(), Self::Error>> + Unpin where Self: 'w, W: 'w + AsyncWrite + Unpin

Required Methods§

Source

fn serialize_unit<'w, W>( &'w self, writer: &'w mut W, data: &(), ) -> Self::SerializeUnit<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_bool<'w, W>( &'w self, writer: &'w mut W, data: &bool, ) -> Self::SerializeBool<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_i8<'w, W>( &'w self, writer: &'w mut W, data: &i8, ) -> Self::SerializeI8<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_i16<'w, W>( &'w self, writer: &'w mut W, data: &i16, ) -> Self::SerializeI16<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_i32<'w, W>( &'w self, writer: &'w mut W, data: &i32, ) -> Self::SerializeI32<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_i64<'w, W>( &'w self, writer: &'w mut W, data: &i64, ) -> Self::SerializeI64<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_i128<'w, W>( &'w self, writer: &'w mut W, data: &i128, ) -> Self::SerializeI128<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_u8<'w, W>( &'w self, writer: &'w mut W, data: &u8, ) -> Self::SerializeU8<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_u16<'w, W>( &'w self, writer: &'w mut W, data: &u16, ) -> Self::SerializeU16<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_u32<'w, W>( &'w self, writer: &'w mut W, data: &u32, ) -> Self::SerializeU32<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_u64<'w, W>( &'w self, writer: &'w mut W, data: &u64, ) -> Self::SerializeU64<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_u128<'w, W>( &'w self, writer: &'w mut W, data: &u128, ) -> Self::SerializeU128<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_f32<'w, W>( &'w self, writer: &'w mut W, data: &f32, ) -> Self::SerializeF32<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_f64<'w, W>( &'w self, writer: &'w mut W, data: &f64, ) -> Self::SerializeF64<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_byte_slice<'w, W>( &'w self, writer: &'w mut W, data: &'w [u8], ) -> Self::SerializeByteSlice<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_char<'w, W>( &'w self, writer: &'w mut W, data: &char, ) -> Self::SerializeChar<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_str<'w, W>( &'w self, writer: &'w mut W, data: &'w str, ) -> Self::SerializeStr<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_string<'w, W>( &'w self, writer: &'w mut W, data: &'w String, ) -> Self::SerializeString<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_variant_idx<'w, W>( &'w self, writer: &'w mut W, data: &VariantIdx, ) -> Self::SerializeVariantIdx<'w, W>
where W: AsyncWrite + Unpin,

Source

fn serialize_sequence_len<'w, W>( &'w self, writer: &'w mut W, data: &SequenceLen, ) -> Self::SerializeSequenceLen<'w, W>
where W: AsyncWrite + Unpin,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§