Enum ruma_identifiers::Error [] [src]

pub enum Error {
    InvalidCharacters,
    InvalidHost,
    MaximumLengthExceeded,
    MinimumLengthNotSatisfied,
    MissingDelimiter,
    MissingSigil,
}

An error encountered when trying to parse an invalid ID string.

Variants

The ID's localpart contains invalid characters.

Only relevant for user IDs.

The domain part of the the ID string is not a valid IP address or DNS name.

The ID exceeds 255 bytes.

The ID is less than 4 characters.

The ID is missing the colon delimiter between localpart and server name.

The ID is missing the leading sigil.

Trait Implementations

impl Copy for Error
[src]

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[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 Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

A short description of the error. Read more

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

impl From<ParseError> for Error
[src]

Performs the conversion.