# Enum client::ExpectedHost

> The host the client expects to reach. The welcome's host key must match.

`zaun_community_protocol::client::ExpectedHost` · Enum

```rust
pub enum ExpectedHost { … }
```

The host the client expects to reach. The welcome's host key must match.

## Variants

### `Key(PublicKey)`

A known host key (from a delegation the owner signed, or a stored session).

### `Id(HostId)`

A host id (from an invitation link or the host's advertised info).

## Methods

### `matches`

```rust
pub fn matches(&self, key: &PublicKey) -> bool
```

Whether `key` is this host.

## Trait implementations

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

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