[−][src]Enum xmpp_addr::Error
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |