[][src]Enum twilight_http::routing::PathParseError

pub enum PathParseError {
    IntegerParsing {
        source: ParseIntError,
    },
    MessageIdWithoutMethod {
        channel_id: u64,
    },
    NoMatch,
}

Variants

IntegerParsing

The ID couldn't be parsed as an integer.

Fields of IntegerParsing

source: ParseIntError

Additional information about the parsing failure.

MessageIdWithoutMethod

When parsing into a Path::ChannelsIdMessagesId variant, the method must also be specified via its TryFrom impl.

Fields of MessageIdWithoutMethod

channel_id: u64

The ID of the channel.

NoMatch

A static path for the provided path string wasn't found.

Trait Implementations

impl Clone for PathParseError[src]

impl Debug for PathParseError[src]

impl Display for PathParseError[src]

impl Eq for PathParseError[src]

impl Error for PathParseError[src]

impl From<ParseIntError> for PathParseError[src]

impl PartialEq<PathParseError> for PathParseError[src]

impl StructuralEq for PathParseError[src]

impl StructuralPartialEq for PathParseError[src]

Auto Trait Implementations

impl RefUnwindSafe for PathParseError

impl Send for PathParseError

impl Sync for PathParseError

impl Unpin for PathParseError

impl UnwindSafe for PathParseError

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.