pub struct File<T, F> { /* private fields */ }
Expand description
A configuration source backed up by a file.
It supports optional automatic file format discovery.
Implementations
sourceimpl<F> File<FileSourceString, F> where
F: FileStoredFormat + 'static,
impl<F> File<FileSourceString, F> where
F: FileStoredFormat + 'static,
sourceimpl<F> File<FileSourceFile, F> where
F: FileStoredFormat + 'static,
impl<F> File<FileSourceFile, F> where
F: FileStoredFormat + 'static,
sourceimpl File<FileSourceFile, FileFormat>
impl File<FileSourceFile, FileFormat>
Trait Implementations
sourceimpl<'a> From<&'a Path> for File<FileSourceFile, FileFormat>
impl<'a> From<&'a Path> for File<FileSourceFile, FileFormat>
sourceimpl From<PathBuf> for File<FileSourceFile, FileFormat>
impl From<PathBuf> for File<FileSourceFile, FileFormat>
sourceimpl<T, F> Source for File<T, F> where
F: FileStoredFormat + Debug + Clone + Send + Sync + 'static,
T: Sync + Send + FileSource<F> + 'static,
impl<T, F> Source for File<T, F> where
F: FileStoredFormat + Debug + Clone + Send + Sync + 'static,
T: Sync + Send + FileSource<F> + 'static,
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>
sourcefn collect(&self) -> Result<Map<String, Value>, ConfigError>
fn collect(&self) -> Result<Map<String, Value>, ConfigError>
Collect all configuration properties available from this source and return a Map. Read more
sourcefn 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<T, F> RefUnwindSafe for File<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for File<T, F> where
F: Send,
T: Send,
impl<T, F> Sync for File<T, F> where
F: Sync,
T: Sync,
impl<T, F> Unpin for File<T, F> where
F: Unpin,
T: Unpin,
impl<T, F> UnwindSafe for File<T, F> where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more