Trait tcpserver::ITCPServer

source ·
pub trait ITCPServer<T> {
    // Required methods
    fn start<'life0, 'async_trait>(
        &'life0 self,
        token: T
    ) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<()>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn start_block<'life0, 'async_trait>(
        &'life0 self,
        token: T
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn start<'life0, 'async_trait>( &'life0 self, token: T ) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<()>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn start_block<'life0, 'async_trait>( &'life0 self, token: T ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl<I, R, T, B, C, IST> ITCPServer<T> for Actor<TCPServer<I, R, T, B, C, IST>>
where I: Fn(ReadHalf<C>, Arc<Actor<TCPPeer<C>>>, T) -> R + Send + Sync + 'static, R: Future<Output = Result<()>> + Send + 'static, T: Clone + Send + Sync + 'static, B: Future<Output = Result<C>> + Send + 'static, C: AsyncRead + AsyncWrite + Send + 'static, IST: Fn(TcpStream) -> B + Send + Sync + 'static,

source§

fn start<'life0, 'async_trait>( &'life0 self, token: T ) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<()>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn start_block<'life0, 'async_trait>( &'life0 self, token: T ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§