# Enum client::ClientEvent

> One outcome for the application.

`zaun_community_protocol::client::ClientEvent` · Enum

```rust
pub enum ClientEvent { … }
```

One outcome for the application.

## Variants

### `Welcome(Box<VerifiedWelcome>)`

The welcome verified: commands may be sent.

### `WelcomeRejected(WelcomeError)`

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

### `Response(Response)`

A final response to a command.

### `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 }`

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

### `Event(Box<ReceivedEvent>)`

A catalogue event applied in stream order.

### `Gap(Gap)`

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

### `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)`

Something was received and ignored safely.

## Trait implementations

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/client/event/enum.ClientEvent.html)
