Struct connect::Server[][src]

pub struct Server<I, R, W> where
    I: Fn(Bytes) -> MessageType + Send + Sync + 'static,
    R: Fn(Bytes) -> Bytes + Send + Sync + 'static,
    W: Fn(Bytes) -> Bytes + Send + Sync + 'static, 
{ /* fields omitted */ }

This struct represents connect framework's server.

Methods

impl<I, R, W> Server<I, R, W> where
    I: Fn(Bytes) -> MessageType + Send + Sync + 'static,
    R: Fn(Bytes) -> Bytes + Send + Sync + 'static,
    W: Fn(Bytes) -> Bytes + Send + Sync + 'static, 
[src]

Creates a new instance of Server

Runs this server

Auto Trait Implementations

impl<I, R, W> Send for Server<I, R, W>

impl<I, R, W> Sync for Server<I, R, W>