[][src]Enum taskserver_protocol::request::RequestError

pub enum RequestError {
    InvalidHeader(String),
    MissingHeader(String),
    IOError(Error),
    EncodingError(Utf8Error),
    MissingSyncKey,
    InvalidRequest(String),
}

Request parsing Errors

Variants

InvalidHeader(String)

Raised when a header is malformed

MissingHeader(String)

Raised with the protocol name of the missing header.

IOError(Error)

Raised when reading the Request fails

EncodingError(Utf8Error)

Raised when the Request payload is not valid utf-8

MissingSyncKey
InvalidRequest(String)

Raised when the Request is not valid but none of the Other cases is applicable

Trait Implementations

impl Debug for RequestError[src]

impl Display for RequestError[src]

impl Error for RequestError[src]

impl From<Error> for RequestError[src]

impl From<Utf8Error> for RequestError[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> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

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.