Struct linebased::Config
[−]
[src]
pub struct Config { // some fields omitted }
Server configuration
Methods
impl Config
[src]
fn prompt<S>(self, val: S) -> Self where S: Into<String>
prompt is displayed to client whenever they may submit a command
fn host<S>(self, val: S) -> Self where S: Into<String>
Set host address to listen on
fn welcome_message<S>(self, val: S) -> Self where S: Into<String>
Set welcome message which client receives upon connection
fn port(self, val: u16) -> Self
Set port to listen on
fn max_clients(self, val: usize) -> Self
set maximum number of clients
fn client_buf_size(self, val: usize) -> Self
Set the per-client buffer size
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more