Struct rux::server::Server
[−]
[src]
pub struct Server<L: LoggingBackend> { /* fields omitted */ }
Server facade. TODO rename to something more generic, as it could perfectly be used to implement clients
Takes care of signals and logging, and delegates bind/listen/accept
logic to ServerImpl
.
Methods
impl<L> Server<L> where
L: LoggingBackend + Send,
[src]
L: LoggingBackend + Send,
fn bind<I: ServerImpl + Send + 'static>(im: I, lb: L) -> Result<()>
Instantiates new Server with the given implementation and logging backend