[][src]Struct config::File

pub struct File<T> where
    T: FileSource, 
{ /* fields omitted */ }

Methods

impl File<FileSourceString>[src]

pub fn from_str(s: &str, format: FileFormat) -> Self[src]

impl File<FileSourceFile>[src]

pub fn new(name: &str, format: FileFormat) -> Self[src]

pub fn with_name(name: &str) -> Self[src]

Given the basename of a file, will attempt to locate a file by setting its extension to a registered format.

impl<T: FileSource> File<T>[src]

pub fn format(self, format: FileFormat) -> Self[src]

pub fn required(self, required: bool) -> Self[src]

Trait Implementations

impl<T: FileSource> Source for File<T> where
    T: 'static,
    T: Sync + Send
[src]

fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>[src]

impl<T: Clone> Clone for File<T> where
    T: FileSource, 
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> From<&'a Path> for File<FileSourceFile>[src]

impl From<PathBuf> for File<FileSourceFile>[src]

impl<T: Debug> Debug for File<T> where
    T: FileSource, 
[src]

Auto Trait Implementations

impl<T> Send for File<T> where
    T: Send

impl<T> Sync for File<T> where
    T: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]