pub trait Disconnected: Send {
// Required methods
fn connect<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>>> + Send + 'async_trait>>
where Self: 'async_trait;
fn accept_connection<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>>> + Send + 'async_trait>>
where Self: 'async_trait;
}Required Methods§
fn connect<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn accept_connection<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>>> + Send + 'async_trait>>where
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".