pub enum ExpectedHost {
Key(PublicKey),
Id(HostId),
}Expand description
The host the client expects to reach. The welcome’s host key must match (§4.5, §8.6).
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).
Implementations§
Trait Implementations§
Source§impl Clone for ExpectedHost
impl Clone for ExpectedHost
Source§fn clone(&self) -> ExpectedHost
fn clone(&self) -> ExpectedHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpectedHost
impl Debug for ExpectedHost
impl Eq for ExpectedHost
Source§impl PartialEq for ExpectedHost
impl PartialEq for ExpectedHost
impl StructuralPartialEq for ExpectedHost
Auto Trait Implementations§
impl Freeze for ExpectedHost
impl RefUnwindSafe for ExpectedHost
impl Send for ExpectedHost
impl Sync for ExpectedHost
impl Unpin for ExpectedHost
impl UnsafeUnpin for ExpectedHost
impl UnwindSafe for ExpectedHost
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more