[][src]Trait rsocket_rust::transport::ServerTransport

pub trait ServerTransport {
    type Item;
    fn start(
        self,
        starter: Option<fn()>,
        acceptor: impl Fn(Self::Item) + Send + Sync + 'static
    ) -> Pin<Box<dyn Send + Future<Output = Result<(), Box<dyn Send + Sync + Error>>>>>
    where
        Self::Item: ClientTransport + Sized
; }

Associated Types

type Item

Loading content...

Required methods

fn start(
    self,
    starter: Option<fn()>,
    acceptor: impl Fn(Self::Item) + Send + Sync + 'static
) -> Pin<Box<dyn Send + Future<Output = Result<(), Box<dyn Send + Sync + Error>>>>> where
    Self::Item: ClientTransport + Sized

Loading content...

Implementors

Loading content...