pub struct Init {
pub mode: Mode,
pub conf: Config,
pub exe_path: String,
pub exe_file: String,
pub conf_file: String,
pub root_path: String,
}
Expand description
Describes the server configuration:
Values
mode: Mode
- Running mode of server;conf: Config
- Server configuration;exe_path: String
- The full path to the folder where this executable file is located;exe_file: String
- The full path to this executable file;conf_file: String
- The full path to configuration file;root_path: String
- The full path to the folder where the server was started.
Fields§
§mode: Mode
Running mode of server.
conf: Config
Server configuration.
exe_path: String
The full path to the folder where this executable file is located.
exe_file: String
The full path to this executable file.
conf_file: String
The full path to configuration file.
root_path: String
The full path to the folder where the server was started.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Init
impl Send for Init
impl Sync for Init
impl Unpin for Init
impl UnwindSafe for Init
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