pub struct ConfigBuilder { /* private fields */ }
Expand description
A builder that converts FileConfig to Config
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn new<S>(file_config: FileConfig, config_path: S) -> Selfwhere
S: ToString,
pub fn new<S>(file_config: FileConfig, config_path: S) -> Selfwhere
S: ToString,
starts building a Config with values from a FileConfig, or defaults.
please provide a config path, usefull for rebuilding the config later.
Sourcepub fn into_config(&mut self) -> Result<Config, ConfigError>
pub fn into_config(&mut self) -> Result<Config, ConfigError>
Builds a Config
, populated with listeners and clusters
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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