[][src]Enum xmpp_addr::Error

pub enum Error {
    EmptyJid,
    EmptyLocal,
    LongLocal,
    ShortDomain,
    LongDomain,
    EmptyResource,
    LongResource,
    ForbiddenChars,
    Addr(AddrParseError),
    IDNA(Errors),
}

Possible error values that can occur when parsing JIDs.

Variants

EmptyJid

Returned if an empty string is being parsed.

EmptyLocal

Returned if the localpart is empty (eg. "@example.net").

LongLocal

Returned if the localpart is longer than 1023 bytes.

ShortDomain

Returned if the domain part is too short to be a valid domain, hostname, or IP address.

LongDomain

Returned if the domain part is too long to be a valid domain.

EmptyResource

Returned if the resourcepart is empty (eg. "example.net/"

LongResource

Returned if the resourcepart is longer than 1023 bytes.

ForbiddenChars

Returned if a forbidden character was found in any part of the JID.

Addr(AddrParseError)

Returned if an error occured while attempting to parse the domainpart of the JID as an IPv6 address.

IDNA(Errors)

Returned if an error occured while performing IDNA2008 processing on the domainpart of the JID.

Trait Implementations

impl Debug for Error
[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

impl<T> From for T
[src]

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

type Error = !

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]