Enum sota::datatype::error::Error [] [src]

pub enum Error {
    Client(String),
    Command(String),
    Config(String),
    FromUtf8(FromUtf8Error),
    Http(ResponseData),
    HttpAuth(ResponseData),
    Hyper(HyperError),
    Io(IoError),
    JsonDecoder(JsonDecoderError),
    JsonEncoder(JsonEncoderError),
    JsonParser(JsonParserError),
    Poison(String),
    Package(String),
    Parse(String),
    Recv(RecvError),
    SendEvent(SendError<Event>),
    SendInterpret(SendError<Interpret>),
    Socket(String),
    SystemInfo(String),
    TomlParser(Vec<TomlParserError>),
    TomlDecode(TomlDecodeError),
    UrlParse(UrlParseError),
    Websocket(WebsocketError),
}

System-wide errors that are returned from Result type failures.

Variants

Client
Command
Config
FromUtf8
Http
HttpAuth
Hyper
Io
JsonDecoder
JsonEncoder
JsonParser
Poison
Package
Parse
Recv
SendEvent
SendInterpret
Socket
SystemInfo
TomlParser
TomlDecode
UrlParse
Websocket

Trait Implementations

impl<E> From<PoisonError<E>> for Error
[src]

fn from(e: PoisonError<E>) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(e: FromUtf8Error) -> Error

Performs the conversion.

impl From<HyperError> for Error
[src]

fn from(e: HyperError) -> Error

Performs the conversion.

impl From<IoError> for Error
[src]

fn from(e: IoError) -> Error

Performs the conversion.

impl From<JsonEncoderError> for Error
[src]

fn from(e: JsonEncoderError) -> Error

Performs the conversion.

impl From<JsonDecoderError> for Error
[src]

fn from(e: JsonDecoderError) -> Error

Performs the conversion.

impl From<RecvError> for Error
[src]

fn from(e: RecvError) -> Error

Performs the conversion.

impl From<ResponseData> for Error
[src]

fn from(e: ResponseData) -> Error

Performs the conversion.

impl From<TomlDecodeError> for Error
[src]

fn from(e: TomlDecodeError) -> Error

Performs the conversion.

impl From<UrlParseError> for Error
[src]

fn from(e: UrlParseError) -> Error

Performs the conversion.

impl From<WebsocketError> for Error
[src]

fn from(e: WebsocketError) -> Error

Performs the conversion.

impl From<SendError<Event>> for Error
[src]

fn from(e: SendError<Event>) -> Error

Performs the conversion.

impl From<SendError<Interpret>> for Error
[src]

fn from(e: SendError<Interpret>) -> Error

Performs the conversion.

impl From<Vec<TomlParserError>> for Error
[src]

fn from(e: Vec<TomlParserError>) -> Error

Performs the conversion.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> FmtResult

Formats the value using the given formatter.

Derived Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.