Trait IWebSocketServer

Source
pub trait IWebSocketServer<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> IWebSocketServer<T> for Actor<WebSocketServer<I, R, T>>
where I: Fn(SplitStream<WebSocketStream<MaybeRustlsStream<TcpStream>>>, Arc<Actor<WSPeer>>, T) -> R + Send + Sync + 'static, R: Future<Output = Result<()>> + Send + 'static, T: Clone + 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§