Enum lsio::error::Error [] [src]

pub enum Error {
    ConfigFileIO(Error),
    ConfigFileSyntax(String),
    ConfigInvalidArray(&'static str),
    ConfigInvalidIpv4Addr(&'static str),
    ConfigInvalidSocketAddrV4(&'static str),
    ConfigInvalidString(&'static str),
    ConfigInvalidUrl(&'static str),
    FileNotFound(String),
    IO(Error),
    ParseIntError(ParseIntError),
    StringFromUtf8Error(FromUtf8Error),
    Utf8Error(Utf8Error),
}

Core error types

Variants

Error reading raw contents of configuration file.

Parsing error while reading a configuration file.

Expected a valid array of values for configuration field value.

Expected a valid Ipv4 network address for configuration field value.

Expected a valid SocketAddrV4 address pair for configuration field value.

Expected a string for configuration field value.

Expected a URL for configuration field value.

Occurs when a file that should exist does not or could not be read.

Occurs when making lower level IO calls.

When an error occurs parsing an integer.

When an error occurs converting a String from a UTF-8 byte vector.

When an error occurs attempting to interpret a sequence of u8 as a string.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<ParseIntError> for Error
[src]

Performs the conversion.