Struct worterbuch::Config
source · pub struct Config {
pub ws_endpoint: Option<WsEndpoint>,
pub tcp_endpoint: Option<Endpoint>,
pub use_persistence: bool,
pub persistence_interval: Duration,
pub data_dir: Path,
pub single_threaded: bool,
pub web_root_path: Option<String>,
pub keepalive_timeout: Duration,
pub send_timeout: Duration,
pub channel_buffer_size: usize,
pub extended_monitoring: bool,
}Fields§
§ws_endpoint: Option<WsEndpoint>§tcp_endpoint: Option<Endpoint>§use_persistence: bool§persistence_interval: Duration§data_dir: Path§single_threaded: bool§web_root_path: Option<String>§keepalive_timeout: Duration§send_timeout: Duration§channel_buffer_size: usize§extended_monitoring: boolImplementations§
source§impl Config
impl Config
pub fn load_env(&mut self) -> ConfigResult<()>
pub fn load_env_with_prefix(&mut self, prefix: &str) -> ConfigResult<()>
pub fn new() -> ConfigResult<Self>
Trait Implementations§
source§impl PartialEq for Config
impl PartialEq for Config
impl StructuralPartialEq for Config
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