xmpp

Type Alias Error

Source
pub type Error = Error;

Aliased Type§

enum Error {
Show 13 variants Io(Error), JidParse(Error), Protocol(ProtocolError), Auth(AuthError), Disconnected, InvalidState, Fmt(Error), Utf8(Utf8Error), Connection(Box<dyn ServerConnectorError>), Dns(ProtoError), Resolve(ResolveError), Idna, Addr(AddrParseError),
}

Variants§

§

Io(Error)

I/O error

§

JidParse(Error)

Error parsing Jabber-Id

§

Protocol(ProtocolError)

Protocol-level error

§

Auth(AuthError)

Authentication error

§

Disconnected

Connection closed

§

InvalidState

Should never happen

§

Fmt(Error)

Fmt error

§

Utf8(Utf8Error)

Utf8 error

§

Connection(Box<dyn ServerConnectorError>)

Error specific to ServerConnector impl

§

Dns(ProtoError)

Available on crate feature dns only.

DNS protocol error

§

Resolve(ResolveError)

Available on crate feature dns only.

DNS resolution error

§

Idna

Available on crate feature dns only.

DNS label conversion error, no details available from module idna

§

Addr(AddrParseError)

Invalid IP/Port address

Trait Implementations

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AddrParseError> for Error

Source§

fn from(e: AddrParseError) -> Error

Converts to this type from the input type.
Source§

impl From<AuthError> for Error

Source§

fn from(e: AuthError) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Errors> for Error

Available on crate feature dns only.
Source§

fn from(_e: Errors) -> Error

Converts to this type from the input type.
Source§

impl From<ProtoError> for Error

Available on crate feature dns only.
Source§

fn from(e: ProtoError) -> Error

Converts to this type from the input type.
Source§

impl From<ProtocolError> for Error

Source§

fn from(e: ProtocolError) -> Error

Converts to this type from the input type.
Source§

impl From<ResolveError> for Error

Available on crate feature dns only.
Source§

fn from(e: ResolveError) -> Error

Converts to this type from the input type.
Source§

impl<T> From<T> for Error
where T: ServerConnectorError + 'static,

Source§

fn from(e: T) -> Error

Converts to this type from the input type.
Source§

impl From<Utf8Error> for Error

Source§

fn from(e: Utf8Error) -> Error

Converts to this type from the input type.