pub enum Error {
Show 14 variants
Simplex(Error),
Refused {
kind: &'static str,
code: String,
body: Box<ErrorBody>,
},
BadLink,
UnknownCommunity,
NotPostQuantum,
HostRejected(String),
Protocol(String),
Timeout(&'static str),
Unsupported(&'static str),
Transfer(&'static str),
Voice(String),
Audio(String),
Store(String),
Closed,
}Expand description
A zaun-client failure.
Variants§
Simplex(Error)
The SimpleX client failed or refused.
Refused
The host refused the command with this protocol error.
Fields
BadLink
The text is not a Zaun invitation link.
UnknownCommunity
The community is not one this client belongs to.
NotPostQuantum
The host connection is not post-quantum; the client closed it.
HostRejected(String)
The host’s welcome failed verification.
Protocol(String)
A command could not be built or sent.
Timeout(&'static str)
No answer in time.
Unsupported(&'static str)
The community’s host does not support this (its welcome did not list the capability),
so nothing was sent: a host without embeds would drop them silently.
Transfer(&'static str)
A file transfer failed (an attachment upload or download).
Voice(String)
A voice session could not start or was refused locally (already in voice, a host media policy this client does not accept).
Audio(String)
Audio could not be played: a resource that cannot be opened, ffmpeg missing or refused, an option out of range. Names no path or URL.
Store(String)
The local store could not be read or written.
Closed
The client has stopped.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()