Skip to content

Struct client::owner::HostInfo

zaun_community_protocol::client::owner::HostInfo · Struct

pub struct HostInfo { … }

What an owner needs about a host to delegate to it.

The host key.

1–4 SimpleX contact addresses of the host.

pub const fn new(public_key: PublicKey, addresses: Vec<String>) -> Self

Wraps a host key and addresses known to be authentic.

pub fn from_advertised(host_id: HostId, public_key: PublicKey, addresses: Vec<String>) -> Result<Self, BuildError>

From the host’s advertised HostId, key and addresses: the key must derive the id.

BuildError::HostId when it does not.

pub fn host_id(&self) -> HostId

The host’s id.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page