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§
fn send(&mut self, message: String) -> impl Future<Output = ()> + Send
fn listen(&self, listener: UnboundedSender<String>)
fn close(&self)
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.