Trait connection_utils::Disconnected
source · [−]pub trait Disconnected: Send {
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;
}