Enum uriparse::authority::InvalidAuthority[][src]

pub enum InvalidAuthority {
    ExpectedEOF,
    InvalidHost(InvalidHost),
    InvalidPort(InvalidPort),
    InvalidUserInfo(InvalidUserInfo),
}

An error representing an invalid authority.

Variants

This error occurs when the string from which the authority is parsed is not entirely consumed during the parsing. For example, parsing the string "example.com/" would generate this error since "/" would still be left over.

This only applies to the [Authority::try_from] functions.

The host component of the authority was invalid.

The port component of the authority was invalid.

The user information component of the authority was invalid.

Trait Implementations

impl Clone for InvalidAuthority
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidAuthority
[src]

impl Debug for InvalidAuthority
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidAuthority
[src]

impl Hash for InvalidAuthority
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for InvalidAuthority
[src]

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

This method tests for !=.

impl Display for InvalidAuthority
[src]

Formats the value using the given formatter. Read more

impl Error for InvalidAuthority
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<!> for InvalidAuthority
[src]

Performs the conversion.

impl From<InvalidHost> for InvalidAuthority
[src]

Performs the conversion.

impl From<InvalidPort> for InvalidAuthority
[src]

Performs the conversion.

impl From<InvalidUserInfo> for InvalidAuthority
[src]

Performs the conversion.

impl From<InvalidAuthority> for InvalidURIReference
[src]

Performs the conversion.

Auto Trait Implementations