pub struct FirstContact {
pub url: String,
pub key: String,
pub fingerprint: String,
pub code: Option<String>,
}Expand description
NEST-25: what a node is shown at first contact with a host it has no key
for — the key the host proved at _info, its fingerprint, and this
connection’s pairing code, which the host’s operator sees too.
Fields§
§url: String§key: Stringkey:<64 hex>.
fingerprint: StringSHA256:<base64>, as ssh shows a host key.
code: Option<String>XXXX-XXXX, when the host answered the pairing (host_nonce).
Trait Implementations§
Source§impl Clone for FirstContact
impl Clone for FirstContact
Source§impl Debug for FirstContact
impl Debug for FirstContact
impl Eq for FirstContact
Source§impl PartialEq for FirstContact
impl PartialEq for FirstContact
impl StructuralPartialEq for FirstContact
Auto Trait Implementations§
impl Forget for FirstContact
impl Freeze for FirstContact
impl Move for FirstContact
impl RefUnwindSafe for FirstContact
impl Send for FirstContact
impl Sync for FirstContact
impl Unpin for FirstContact
impl UnsafeUnpin for FirstContact
impl UnwindSafe for FirstContact
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.