Type Alias xmpp::Error

source ·
pub type Error = Error;

Aliased Type§

enum Error {
    Io(Error),
    JidParse(Error),
    Protocol(ProtocolError),
    Auth(AuthError),
    Disconnected,
    InvalidState,
    Fmt(Error),
    Utf8(Utf8Error),
    Connection(Box<dyn ServerConnectorError>),
}

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 resolving DNS and/or establishing a connection, returned by a ServerConnector impl

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<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<ProtocolError> for Error

source§

fn from(e: ProtocolError) -> 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.