[][src]Trait rsocket_rust::transport::ServerTransportOld

pub trait ServerTransportOld {
    type Item;
#[must_use]    pub fn start<'async_trait>(
        self,
        starter: Option<Box<dyn FnMut() + Send + Sync>>,
        acceptor: Box<dyn Fn(Self::Item) -> Result<()> + Send + Sync>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        Self::Item: Transport + Sized,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

#[must_use]pub fn start<'async_trait>(
    self,
    starter: Option<Box<dyn FnMut() + Send + Sync>>,
    acceptor: Box<dyn Fn(Self::Item) -> Result<()> + Send + Sync>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    Self::Item: Transport + Sized,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...