Trait xwt_core::traits::Connecting

source ·
pub trait Connecting: Send {
    type Connection: Send;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn wait_connect(
        self
    ) -> impl Future<Output = Result<Self::Connection, Self::Error>> + Send;
}

Required Associated Types§

source

type Connection: Send

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn wait_connect( self ) -> impl Future<Output = Result<Self::Connection, Self::Error>> + Send

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Connecting for Connecting<T>
where T: Send,