# Enum client::ProtocolError

> Input ignored safely.

`zaun_community_protocol::client::ProtocolError` · Enum

```rust
pub enum ProtocolError { … }
```

Input ignored safely.

## Variants

### `NotProtocol`

Text without the `zaun:` prefix.

### `UnknownPrefix`

An unknown frame prefix (`zaun:2:` …).

### `MalformedFragment`

A malformed fragment header.

### `FragmentDiscarded(DiscardReason)`

A fragment reassembly was discarded.

### `TooLarge`

An envelope above `max_frame`.

### `MalformedEnvelope`

Not a valid response, event or batch envelope.

### `BadBatch`

A batch inside a batch, or a batch element for another community.

### `WrongVersion(u16)`

An event whose `v` is not the negotiated version (dropped, the protocol).

### `WrongCommunity`

An event for another community than the session's.

### `MalformedEvent(String)`

A known event type with a malformed body; its cursor still advances.

### `UncorrelatedError(ErrorBody)`

An error response with `request_id: null`.

### `NotReady`

An event before a verified welcome or after a failed one (dropped).

### `BindingMismatch`

A binding response names another community than the one requested; not bound.

### `AutoSend(ClientError)`

An automatic `sync.resume` or `sync.ack` could not be prepared.

## Trait implementations

`Clone`, `Debug`, `Eq`, `PartialEq`, `StructuralPartialEq`

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