[][src]Struct oceanpkg::config::file::ConfigFile

pub struct ConfigFile {
    pub path: PathBuf,
    pub fmt: ConfigFileFmt,
    pub handle: Option<File>,
}

Information for the configuration file.

The configuration file always has a stem of "ocean" (case-insensitive).

Fields

path: PathBuf

The location of the configuration file.

fmt: ConfigFileFmt

The format with which to parse the file.

handle: Option<File>

An open handle to the file at path.

Methods

impl ConfigFile[src]

pub fn find(path: &Path) -> Result<Self, NotFound>[src]

Locates the configuration file at path.

Trait Implementations

impl Debug for ConfigFile[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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 = !

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.