Struct tor_config::sources::FoundConfigFiles
source · pub struct FoundConfigFiles<'srcs> { /* private fields */ }
Expand description
Configuration files and directories we found in the filesystem
Result of ConfigurationSources::scan
.
When loading configuration files and also watching for filesystem updates, this type encapsulates all the actual filesystem objects that need watching.
Implementations§
source§impl FoundConfigFiles<'_>
impl FoundConfigFiles<'_>
sourcepub fn iter(&self) -> impl Iterator<Item = &ConfigurationSource>
pub fn iter(&self) -> impl Iterator<Item = &ConfigurationSource>
Iterate over the filesystem objects that the scan found
sourcepub fn load(self) -> Result<Config, ConfigError>
pub fn load(self) -> Result<Config, ConfigError>
Load the configuration into a new [config::Config
].
Trait Implementations§
Auto Trait Implementations§
impl<'srcs> RefUnwindSafe for FoundConfigFiles<'srcs>
impl<'srcs> Send for FoundConfigFiles<'srcs>
impl<'srcs> Sync for FoundConfigFiles<'srcs>
impl<'srcs> Unpin for FoundConfigFiles<'srcs>
impl<'srcs> UnwindSafe for FoundConfigFiles<'srcs>
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