Struct ServerConfig
pub struct ServerConfig {
pub dir: PathBuf,
pub shards: u32,
pub local: LocalOptions,
pub security: Security,
}Fields§
§dir: PathBuf§shards: u32§local: LocalOptions§security: SecurityTLS and the token for worker and client connections. TLS applies to TCP listeners; a Unix socket checks the token only.
Trait Implementations§
§impl Clone for ServerConfig
impl Clone for ServerConfig
Auto Trait Implementations§
impl Forget for ServerConfig
impl Freeze for ServerConfig
impl Move for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin 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