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§
source§impl<F> File<FileSourceString, F>where
F: FileStoredFormat + 'static,
impl<F> File<FileSourceString, F>where F: FileStoredFormat + 'static,
source§impl<F> File<FileSourceFile, F>where
F: FileStoredFormat + 'static,
impl<F> File<FileSourceFile, F>where F: FileStoredFormat + 'static,
source§impl File<FileSourceFile, FileFormat>
impl File<FileSourceFile, FileFormat>
Trait Implementations§
source§impl<'a> From<&'a Path> for File<FileSourceFile, FileFormat>
impl<'a> From<&'a Path> for File<FileSourceFile, FileFormat>
source§impl From<PathBuf> for File<FileSourceFile, FileFormat>
impl From<PathBuf> for File<FileSourceFile, FileFormat>
source§impl<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>
source§fn 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.
source§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<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§
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