pub struct FileSource<F: Format> { /* private fields */ }Expand description
Reads config from the first file in candidates that exists on disk.
Implementations§
Trait Implementations§
Source§impl<F: Format> Source for FileSource<F>
impl<F: Format> Source for FileSource<F>
Source§fn collect(&self) -> Result<ConfigValue, SourceError>
fn collect(&self) -> Result<ConfigValue, SourceError>
Collect config values from this source. Read more
Source§fn with_app_name(self, _name: &str) -> Selfwhere
Self: Sized,
fn with_app_name(self, _name: &str) -> Selfwhere
Self: Sized,
Inject the application name derived from
crate::config::ConfigSchema::APP_NAME. Read moreAuto Trait Implementations§
impl<F> Freeze for FileSource<F>where
F: Freeze,
impl<F> RefUnwindSafe for FileSource<F>where
F: RefUnwindSafe,
impl<F> Send for FileSource<F>where
F: Send,
impl<F> Sync for FileSource<F>where
F: Sync,
impl<F> Unpin for FileSource<F>where
F: Unpin,
impl<F> UnsafeUnpin for FileSource<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FileSource<F>where
F: 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