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.
Fields
Section titled “Fields”public_key: PublicKey
Section titled “public_key: PublicKey”The host key.
addresses: Vec<String>
Section titled “addresses: Vec<String>”1–4 SimpleX contact addresses of the host.
Methods
Section titled “Methods”pub const fn new(public_key: PublicKey, addresses: Vec<String>) -> SelfWraps a host key and addresses known to be authentic.
from_advertised
Section titled “from_advertised”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.
Errors
Section titled “Errors”BuildError::HostId when it does not.
host_id
Section titled “host_id”pub fn host_id(&self) -> HostIdThe host’s id.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq