# Enum client::WelcomeError

> Why a `session.welcome` was rejected.

`zaun_community_protocol::client::WelcomeError` · Enum

```rust
pub enum WelcomeError { … }
```

Why a `session.welcome` was rejected.

## Variants

### `Malformed`

The welcome body is not a valid `session.welcome`.

### `Version { version, offered }`

The negotiated version is outside the range this client offered.

### `Host`

The host key or id is not the expected host.

### `HostId`

The welcome's `host_id` does not derive from its `host_public_key`.

### `MissingCommunity`

A community was expected but the welcome carries no descriptor, delegation or proof
naming it.

### `Binding`

The welcome binds the connection to another community.

### `Pair(ValidityError)`

The descriptor/delegation pair is not valid.

### `Delegation`

The delegation does not name this host or lacks `OPERATE`.

### `ChainIncomplete`

The rotation chain is longer than the client knows; fetch `community.rotations`.

### `Proof(SessionProofError)`

The host session proof failed.

### `Challenge`

The proof's challenge differs from the welcome's.

### `Refused`

The host answered `session.hello` with an error (for example `UNSUPPORTED_VERSION`).

## Trait implementations

`Clone`, `Debug`, `Display`, `Eq`, `Error`, `From<SessionProofError>`, `From<ValidityError>`, `PartialEq`, `StructuralPartialEq`

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