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.
Variants
Section titled “Variants”Key(PublicKey)
Section titled “Key(PublicKey)”A known host key (from a delegation the owner signed, or a stored session).
Id(HostId)
Section titled “Id(HostId)”A host id (from an invitation link or the host’s advertised info).
Methods
Section titled “Methods”matches
Section titled “matches”pub fn matches(&self, key: &PublicKey) -> boolWhether key is this host.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq