jetstream_wireformat::wire_format_extensions

Trait AsyncWireFormat

pub trait AsyncWireFormat: Sized {
    // Required methods
    fn encode_async<W: AsyncWireFormat + Unpin + Send>(
        self,
        writer: &mut W,
    ) -> impl Future<Output = Result<()>> + Send;
    fn decode_async<R: AsyncWireFormat + Unpin + Send>(
        reader: &mut R,
    ) -> impl Future<Output = Result<Self>> + Send;
}

Required Methods

fn encode_async<W: AsyncWireFormat + Unpin + Send>( self, writer: &mut W, ) -> impl Future<Output = Result<()>> + Send

fn decode_async<R: AsyncWireFormat + Unpin + Send>( reader: &mut R, ) -> impl Future<Output = Result> + Send

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