[][src]Enum barc::DialogConvertError

pub enum DialogConvertError {
    NoMetaUrl,
    InvalidUrl(InvalidUri),
    NoMetaMethod,
    InvalidMethod(InvalidMethod),
    NoMetaResVersion,
    InvalidVersion(Vec<u8>),
    NoMetaResStatus,
    MalformedMetaResStatus,
    InvalidStatusCode(InvalidStatusCode),
    InvalidResDecoded(String),
    _FutureProof,
}

Error enumeration for failures when converting from a Record to a Dialog.

This error type may also be converted to (wrapped as) a BarcError. It may be extended in the future, so exhaustive matching is gently discouraged with an unused variant.

Variants

NoMetaUrl

No url meta header found.

InvalidUrl(InvalidUri)

The url meta header failed to parse as an http::Uri.

NoMetaMethod

No method meta header found.

InvalidMethod(InvalidMethod)

The method meta header failed to parse as an http::Method.

NoMetaResVersion

No response-version meta header found.

InvalidVersion(Vec<u8>)

The response-version meta header did not match a known value.

NoMetaResStatus

No response-status meta header found.

MalformedMetaResStatus

The response-status meta header is not in a recognized format.

InvalidStatusCode(InvalidStatusCode)

The response-status meta header failed to be parsed as an http::StatusCode.

InvalidResDecoded(String)

The response-decoded meta header failed to be parsed.

_FutureProof

Unused variant to both enable non-exhaustive matching and warn against exhaustive matching.

Trait Implementations

impl Debug for DialogConvertError[src]

impl Display for DialogConvertError[src]

impl Error for DialogConvertError[src]

impl From<DialogConvertError> for BarcError[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,