pub struct Config {}
Expand description
Describes the server configuration.
Values
version: String
- Server version from env!(“CARGO_PKG_VERSION”) primary project;lang: String
- Default language;log: String
- Path to log file;max: SysCount
- Number of work processes in async operations;bind_accept: AcceptAddr
- The address from which we accept working connections;bind_ip: Addr
- The address of the server that binds clients;rpc_accept: AcceptAddr
- The address from which we accept connections for managing the server;rpc_ip: Addr
- IP address from which to bind connections for managing the server;salt: String
- Salt for a crypto functions.db: Option<DBConfig>
- Database configuration.stop: u64
- Stop signal.
Fields§
§name: String
Name server from env!(“CARGO_PKG_NAME”) primary project.
desc: String
Description server from env!(“CARGO_PKG_DESCRIPTION”) primary project.
version: String
Server version from env!(“CARGO_PKG_VERSION”) primary project.
lang: String
Default language.
log: String
Path to log file.
max: usize
Number of work processes in async operations.
bind_accept: AcceptAddr
The address from which we accept working connections.
bind: Addr
The address of the server that binds clients.
rpc_accept: AcceptAddr
The address from which we accept connections for managing the server.
rpc: Addr
IP address from which to bind connections for managing the server.
salt: String
Salt for a crypto functions.
db: DBConfig
Database configuration.
stop: i64
Stop signal
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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