Struct linebased::Config [−][src]
pub struct Config { /* fields omitted */ }
Server configuration
Implementations
impl Config
[src]
impl Config
[src]pub fn host<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
Set host address to listen on
pub fn port(self, val: u16) -> Self
[src]
Set port to listen on
pub fn max_clients(self, val: usize) -> Self
[src]
set maximum number of clients
pub fn client_buf_size(self, val: usize) -> Self
[src]
Set the initial per-client buffer size, will grow beyond this limit if required.
pub fn handle_fn_blocks(self) -> Self
[src]
Indicate that the handle fn might block and should be spawned on a tokio worker thread. This should be used if the fn does heavy computation, or has any blocking i/o in it.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl RefUnwindSafe for Config
impl UnwindSafe for Config
impl UnwindSafe for Config