Trait tcpserver::ITCPServer[][src]

pub trait ITCPServer<T> {
#[must_use]    fn start<'life0, 'async_trait>(
        &'life0 self,
        token: T
    ) -> Pin<Box<dyn Future<Output = AResult<JoinHandle<Result<()>>>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn start_block<'life0, 'async_trait>(
        &'life0 self,
        token: T
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

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

#[must_use]fn start_block<'life0, 'async_trait>(
    &'life0 self,
    token: T
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl<I, R, T> ITCPServer<T> for Actor<TCPServer<I, R, T>> where
    I: Fn(OwnedReadHalf, Arc<Actor<TCPPeer>>, T) -> R + Send + Sync + 'static,
    R: Future<Output = ()> + Send + 'static,
    T: Clone + Send + Sync + 'static, 
[src]

Loading content...

Implementors

Loading content...