pub enum PinOutcome {
New,
Same,
Changed {
previous: Fingerprint,
},
}Expand description
The result of observing a peer’s fingerprint against what was previously pinned for them.
Variants§
New
No fingerprint was pinned yet; this one now is.
Same
The observed fingerprint matches what was already pinned.
Changed
The observed fingerprint does not match the pinned one. The pin is left unchanged;
only PeerTrust::repin moves it.
Fields
§
previous: FingerprintThe fingerprint that stays pinned until the caller explicitly repins.
Trait Implementations§
Source§impl Clone for PinOutcome
impl Clone for PinOutcome
Source§fn clone(&self) -> PinOutcome
fn clone(&self) -> PinOutcome
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 moreimpl Copy for PinOutcome
Source§impl Debug for PinOutcome
impl Debug for PinOutcome
impl Eq for PinOutcome
Source§impl PartialEq for PinOutcome
impl PartialEq for PinOutcome
Source§fn eq(&self, other: &PinOutcome) -> bool
fn eq(&self, other: &PinOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PinOutcome
Auto Trait Implementations§
impl Freeze for PinOutcome
impl RefUnwindSafe for PinOutcome
impl Send for PinOutcome
impl Sync for PinOutcome
impl Unpin for PinOutcome
impl UnsafeUnpin for PinOutcome
impl UnwindSafe for PinOutcome
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