pub trait TransportSenderT: MaybeSend + 'static {
    type Error: Error + Send + Sync;

    fn send<'life0, 'async_trait>(
        &'life0 mut self,
        msg: String
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn send_ping<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn close<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        Self: Send + 'async_trait,
        'life0: 'async_trait
, { ... } }
Expand description

Transport interface to send data asynchronous.

Required Associated Types§

Error that may occur during sending a message.

Required Methods§

Send.

Send ping frame (opcode of 0x9).

Provided Methods§

If the transport supports sending customized close messages.

Implementors§