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
ConfigFileIO(Error)Error reading raw contents of configuration file.
ConfigFileSyntax(String)Parsing error while reading a configuration file.
ConfigInvalidArray(&'static str)Expected a valid array of values for configuration field value.
ConfigInvalidIpv4Addr(&'static str)Expected a valid Ipv4 network address for configuration field value.
ConfigInvalidSocketAddrV4(&'static str)Expected a valid SocketAddrV4 address pair for configuration field value.
ConfigInvalidString(&'static str)Expected a string for configuration field value.
ConfigInvalidUrl(&'static str)Expected a URL for configuration field value.
FileNotFound(String)Occurs when a file that should exist does not or could not be read.
IO(Error)Occurs when making lower level IO calls.
ParseIntError(ParseIntError)When an error occurs parsing an integer.
StringFromUtf8Error(FromUtf8Error)When an error occurs converting a String from a UTF-8 byte vector.
Utf8Error(Utf8Error)When an error occurs attempting to interpret a sequence of u8 as a string.
Trait Implementations
impl Debug for Error[src]
impl Display for Error[src]
impl Error for Error[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more
impl From<FromUtf8Error> for Error[src]
fn from(err: FromUtf8Error) -> Self
Performs the conversion.
impl From<Utf8Error> for Error[src]
impl From<Error> for Error[src]
impl From<ParseIntError> for Error[src]
fn from(err: ParseIntError) -> Self
Performs the conversion.