pub struct Pins(/* private fields */);Expand description
A set of pinned certificate fingerprints: fixed, or the accepted peers of a
TrustStore.
A fixed pin matches a certificate by hashing it with the pin’s own digest, and every pin is compared in constant time whatever its digest. A store holds SHA-256 pins.
Implementations§
Source§impl Pins
impl Pins
Sourcepub fn fixed(fingerprints: impl IntoIterator<Item = PeerId>) -> Self
pub fn fixed(fingerprints: impl IntoIterator<Item = PeerId>) -> Self
Exactly these fingerprints.
Sourcepub fn store(store: TrustStore) -> Self
pub fn store(store: TrustStore) -> Self
The peers accepted in store, read at every handshake. A server using this also
records refused peers that proved their key as waiting in the store.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Pins
impl !UnwindSafe for Pins
impl Freeze for Pins
impl Send for Pins
impl Sync for Pins
impl Unpin for Pins
impl UnsafeUnpin for Pins
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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