brane_cfg::info

Type Alias YamlError

Source
pub type YamlError = InfoError<Error>;
Expand description

A type alias for the ConfigError for the YamlConfig.

Aliased Type§

enum YamlError {
    OutputCreateError {
        path: PathBuf,
        err: Error,
    },
    InputOpenError {
        path: PathBuf,
        err: Error,
    },
    InputReadError {
        path: PathBuf,
        err: Error,
    },
    StringSerializeError {
        err: Error,
    },
    WriterSerializeError {
        err: Error,
    },
    FileSerializeError {
        path: PathBuf,
        err: Error,
    },
    StringDeserializeError {
        err: Error,
    },
    ReaderDeserializeError {
        err: Error,
    },
    FileDeserializeError {
        path: PathBuf,
        err: Error,
    },
}

Variants§

§

OutputCreateError

Failed to create the output file.

Fields

§path: PathBuf
§err: Error
§

InputOpenError

Failed to open the input file.

Fields

§path: PathBuf
§err: Error
§

InputReadError

Failed to read the input file.

Fields

§path: PathBuf
§err: Error
§

StringSerializeError

Failed to serialize the config to a string.

Fields

§err: Error
§

WriterSerializeError

Failed to serialize the config to a given writer.

Fields

§err: Error
§

FileSerializeError

Failed to serialize the config to a given file.

Fields

§path: PathBuf
§err: Error
§

StringDeserializeError

Failed to deserialize a string to the config.

Fields

§err: Error
§

ReaderDeserializeError

Failed to deserialize a reader to the config.

Fields

§err: Error
§

FileDeserializeError

Failed to deserialize a file to the config.

Fields

§path: PathBuf
§err: Error

Trait Implementations

Source§

impl<E: Debug + Debug> Debug for InfoError<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Error> Display for InfoError<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FResult

Formats the value using the given formatter. Read more
Source§

impl<E: 'static + Error> Error for InfoError<E>

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more