Enum client::ClientError
zaun_community_protocol::client::ClientError · Enum
pub enum ClientError { … }A command could not be prepared or the session refuses to send it.
Variants
Section titled “Variants”InvalidBody(BodyError)
Section titled “InvalidBody(BodyError)”The body breaks a state-free rule; nothing was sent.
Serialize
Section titled “Serialize”The body or envelope failed to serialise (never expected for this crate’s types).
Frame(EncodeError)
Section titled “Frame(EncodeError)”The envelope exceeds its size limit or cannot be framed.
TooLarge { len, limit }
Section titled “TooLarge { len, limit }”The envelope exceeds the command limit for its type.
Rng(RngError)
Section titled “Rng(RngError)”The OS random number generator failed.
NotReady
Section titled “NotReady”No verified session.welcome yet: call super::Session::hello and wait.
Failed(WelcomeError)
Section titled “Failed(WelcomeError)”The welcome failed verification; the session MUST NOT send commands.
WrongCommunity
Section titled “WrongCommunity”community_id differs from the session’s binding.
WrongKind(&'static str)
Section titled “WrongKind(&'static str)”super::Session::send_signal with a non-signal body, or send with a signal.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Display, Eq, Error, From<EncodeError>, From<RngError>, PartialEq, StructuralPartialEq