pub struct Config {Show 14 fields
pub name: String,
pub desc: String,
pub version: String,
pub lang: String,
pub log: String,
pub max: usize,
pub bind_accept: AcceptAddr,
pub bind: Addr,
pub rpc_accept: AcceptAddr,
pub rpc: Addr,
pub salt: String,
pub db: DBConfig,
pub stop: i64,
pub protocol: WorkerType,
}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: StringName server from env!(“CARGO_PKG_NAME”) primary project.
desc: StringDescription server from env!(“CARGO_PKG_DESCRIPTION”) primary project.
version: StringServer version from env!(“CARGO_PKG_VERSION”) primary project.
lang: StringDefault language.
log: StringPath to log file.
max: usizeNumber of work processes in async operations.
bind_accept: AcceptAddrThe address from which we accept working connections.
bind: AddrThe address of the server that binds clients.
rpc_accept: AcceptAddrThe address from which we accept connections for managing the server.
rpc: AddrIP address from which to bind connections for managing the server.
salt: StringSalt for a crypto functions.
db: DBConfigDatabase configuration.
stop: i64Stop signal
protocol: WorkerTypeProtocol
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