Struct resp_async::Server [−][src]
pub struct Server<H> where
H: EventHandler + Send + Sync + 'static, { /* fields omitted */ }
Methods
impl<H> Server<H> where
H: EventHandler + Send + Sync + 'static,
[src]
impl<H> Server<H> where
H: EventHandler + Send + Sync + 'static,
pub fn new(handler: H) -> Self
[src]
pub fn new(handler: H) -> Self
pub fn listen(&mut self, addr: &SocketAddr) -> Result<&mut Self>
[src]
pub fn listen(&mut self, addr: &SocketAddr) -> Result<&mut Self>
pub fn serve(&mut self) -> Result<()>
[src]
pub fn serve(&mut self) -> Result<()>