Struct tor_config::cmdline::CmdLine
source · pub struct CmdLine { /* private fields */ }
Expand description
A CmdLine holds a set of command-line arguments that augment a configuration.
These arguments are formatted in toml, and concatenated into a single toml object. With arguments of the form “key=bareword”, the bareword is quoted for convenience.
Implementations§
Trait Implementations§
source§impl Source for CmdLine
impl Source for CmdLine
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>
source§fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
Collect all configuration properties available from this source and return
a Map.
§fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Collects all configuration properties to a provided cache.
Auto Trait Implementations§
impl RefUnwindSafe for CmdLine
impl Send for CmdLine
impl Sync for CmdLine
impl Unpin for CmdLine
impl UnwindSafe for CmdLine
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