# Enum Error

> A `zaun-client` failure.

`zaun_client::Error` · Enum

```rust
pub enum Error { … }
```

A `zaun-client` failure.

## Variants

### `Simplex(Error)`

The SimpleX client failed or refused.

### `Refused { kind, code, body }`

The host refused the command with this protocol error.

### `BadLink`

The text is not a Zaun invitation link.

### `UnknownCommunity`

The community is not one this client belongs to.

### `NotPostQuantum`

The host connection is not post-quantum; the client closed it.

### `HostRejected(String)`

The host's welcome failed verification.

### `Protocol(String)`

A command could not be built or sent.

### `Timeout(&'static str)`

No answer in time.

### `Unsupported(&'static str)`

The community's host does not support this (its welcome did not list the capability),
so nothing was sent: a host without `embeds` would drop them silently.

### `Transfer(&'static str)`

A file transfer failed (an attachment upload or download).

### `Voice(String)`

A voice session could not start or was refused locally (already in voice, a host
media policy this client does not accept).

### `Audio(String)`

Audio could not be played: a resource that cannot be opened, ffmpeg missing or
refused, an option out of range. Names no path or URL.

### `Store(String)`

The local store could not be read or written.

### `Closed`

The client has stopped.

## Trait implementations

`Debug`, `Display`, `Error`, `From<Error>`

[Full rustdoc page](/docs/api/rust/zaun-client/zaun_client/error/enum.Error.html)
