Enum client::ClientEvent
zaun_community_protocol::client::ClientEvent · Enum
pub enum ClientEvent { … }One outcome for the application.
Variants
Section titled “Variants”Welcome(Box<VerifiedWelcome>)
Section titled “Welcome(Box<VerifiedWelcome>)”The welcome verified: commands may be sent.
WelcomeRejected(WelcomeError)
Section titled “WelcomeRejected(WelcomeError)”The welcome failed verification; the session is dead and SHOULD alert the user.
Response(Response)
Section titled “Response(Response)”A final response to a command.
Retrying { request_id, kind, error, retry_at_ms }
Section titled “Retrying { request_id, kind, error, retry_at_ms }”A transient error (BUSY, RATE_LIMITED, SLOWMODE_ACTIVE, INTERNAL): the same
request is resent at retry_at_ms. For the session’s own sync.ack refused
with RATE_LIMITED (kind "sync.ack", a request_id the application never saw) a
new ack with the cursors current at retry_at_ms is sent instead; nothing
needs doing.
GaveUp { request_id, kind }
Section titled “GaveUp { request_id, kind }”No response within the give-up time (24 h, the protocol); the request is abandoned.
Event(Box<ReceivedEvent>)
Section titled “Event(Box<ReceivedEvent>)”A catalogue event applied in stream order.
Gap(Gap)
Section titled “Gap(Gap)”A sequence gap; the session has sent sync.resume to repair it.
ResyncRequired { stream, channel_id }
Section titled “ResyncRequired { stream, channel_id }”A stream is older than the host’s retention: take a snapshot (member stream) or page
message.history (channel), then reset its cursor.
ProtocolError(ProtocolError)
Section titled “ProtocolError(ProtocolError)”Something was received and ignored safely.
Trait implementations
Section titled “Trait implementations”Clone, Debug