pub struct ServerConfig {Show 33 fields
pub listen: String,
pub target: String,
pub key: String,
pub crypt: String,
pub mode: String,
pub mtu: u32,
pub ratelimit: u32,
pub sndwnd: u32,
pub rcvwnd: u32,
pub datashard: u32,
pub parityshard: u32,
pub dscp: u32,
pub nocomp: bool,
pub acknodelay: bool,
pub nodelay: u32,
pub interval: u32,
pub resend: u32,
pub nc: u32,
pub sockbuf: u32,
pub smuxver: u32,
pub smuxbuf: u32,
pub framesize: u32,
pub streambuf: u32,
pub keepalive: u32,
pub log: String,
pub snmplog: String,
pub snmpperiod: u32,
pub pprof: bool,
pub quiet: bool,
pub tcp: bool,
pub qpp: bool,
pub qpp_count: u32,
pub closewait: u32,
}Fields§
§listen: String§target: String§key: String§crypt: String§mode: String§mtu: u32§ratelimit: u32§sndwnd: u32§rcvwnd: u32§datashard: u32§parityshard: u32§dscp: u32§nocomp: bool§acknodelay: bool§nodelay: u32§interval: u32§resend: u32§nc: u32§sockbuf: u32§smuxver: u32§smuxbuf: u32§framesize: u32§streambuf: u32§keepalive: u32§log: String§snmplog: String§snmpperiod: u32§pprof: bool§quiet: bool§tcp: bool§qpp: bool§qpp_count: u32§closewait: u32Implementations§
Source§impl ServerConfig
impl ServerConfig
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more