Skip to content

Enum client::ExpectedHost

zaun_community_protocol::client::ExpectedHost · Enum

pub enum ExpectedHost { … }

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

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

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

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

Whether key is this host.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page