pub trait UntypedTransportWrite: Send + Unpin {
    fn write<'life0, 'async_trait, T>(
        &'life0 mut self,
        data: T
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        T: Serialize + Send + 'static,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Interface representing a transport’s write half that uses serde to serialize data as it is sent

Required Methods

Attempts to write some data of type T, returning io::Error if unable to serialize or some other error occurs.

Implementors