Enum Error
zaun_client::Error · Enum
pub enum Error { … }A zaun-client failure.
Variants
Section titled “Variants”Simplex(Error)
Section titled “Simplex(Error)”The SimpleX client failed or refused.
Refused { kind, code, body }
Section titled “Refused { kind, code, body }”The host refused the command with this protocol error.
BadLink
Section titled “BadLink”The text is not a Zaun invitation link.
UnknownCommunity
Section titled “UnknownCommunity”The community is not one this client belongs to.
NotPostQuantum
Section titled “NotPostQuantum”The host connection is not post-quantum; the client closed it.
HostRejected(String)
Section titled “HostRejected(String)”The host’s welcome failed verification.
Protocol(String)
Section titled “Protocol(String)”A command could not be built or sent.
Timeout(&'static str)
Section titled “Timeout(&'static str)”No answer in time.
Unsupported(&'static str)
Section titled “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)
Section titled “Transfer(&'static str)”A file transfer failed (an attachment upload or download).
Voice(String)
Section titled “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)
Section titled “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)
Section titled “Store(String)”The local store could not be read or written.
Closed
Section titled “Closed”The client has stopped.
Trait implementations
Section titled “Trait implementations”Debug, Display, Error, From<Error>