Struct distant_net::server::ServerConfig
source · Expand description
Represents a general-purpose set of properties tied with a server instance
Fields
connection_sleep: DurationTime to wait inbetween connection read/write when nothing was read or written on last pass
shutdown: ShutdownRules for how a server will shutdown automatically
Trait Implementations
sourceimpl Clone for ServerConfig
impl Clone for ServerConfig
sourcefn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ServerConfig
impl Debug for ServerConfig
sourceimpl Default for ServerConfig
impl Default for ServerConfig
sourceimpl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
sourcefn 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
sourceimpl PartialEq<ServerConfig> for ServerConfig
impl PartialEq<ServerConfig> for ServerConfig
sourcefn eq(&self, other: &ServerConfig) -> bool
fn eq(&self, other: &ServerConfig) -> bool
sourceimpl Serialize for ServerConfig
impl Serialize for ServerConfig
impl Eq for ServerConfig
impl StructuralEq for ServerConfig
impl StructuralPartialEq for ServerConfig
Auto Trait Implementations
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more