Skip to content

Enum client::ClientEvent

zaun_community_protocol::client::ClientEvent · Enum

pub enum ClientEvent { … }

One outcome for the application.

The welcome verified: commands may be sent.

The welcome failed verification; the session is dead and SHOULD alert the user.

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.

No response within the give-up time (24 h, the protocol); the request is abandoned.

A catalogue event applied in stream order.

A sequence gap; the session has sent sync.resume to repair it.

A stream is older than the host’s retention: take a snapshot (member stream) or page message.history (channel), then reset its cursor.

Something was received and ignored safely.

Clone, Debug

Full rustdoc page