ConnectionTransport

Trait ConnectionTransport 

Source
pub trait ConnectionTransport {
    // Required methods
    fn send(&mut self, message: String) -> impl Future<Output = ()> + Send;
    fn listen(&self, listener: UnboundedSender<String>);
    fn close(&self);
    fn on_close(&self);
}

Required Methods§

Source

fn send(&mut self, message: String) -> impl Future<Output = ()> + Send

Source

fn listen(&self, listener: UnboundedSender<String>)

Source

fn close(&self)

Source

fn on_close(&self)

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§