Enum rocket::http::uri::SegmentError[][src]

pub enum SegmentError {
    Utf8(Utf8Error),
    BadStart(char),
    BadChar(char),
    BadEnd(char),
}
Expand description

Errors which can occur when attempting to interpret a segment string as a valid path segment.

Variants

Utf8(Utf8Error)

The segment contained invalid UTF8 characters when percent decoded.

Tuple Fields of Utf8

0: Utf8Error
BadStart(char)

The segment started with the wrapped invalid character.

Tuple Fields of BadStart

0: char
BadChar(char)

The segment contained the wrapped invalid character.

Tuple Fields of BadChar

0: char
BadEnd(char)

The segment ended with the wrapped invalid character.

Tuple Fields of BadEnd

0: char

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Converts self into a collection.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.