pub struct PeerIdentity {
pub fingerprint: PeerId,
pub certificate: Vec<u8>,
}Expand description
Fields§
§fingerprint: PeerIdThe certificate’s fingerprint.
certificate: Vec<u8>The certificate, DER encoded; with a raw public key (see
CertificateType), the SubjectPublicKeyInfo, DER encoded.
Implementations§
Source§impl PeerIdentity
impl PeerIdentity
Sourcepub fn is_raw_public_key(&self) -> bool
pub fn is_raw_public_key(&self) -> bool
Whether this peer authenticated with a raw public key (RFC 7250), so
certificate holds its SubjectPublicKeyInfo, and its
fingerprint is the id of that.
Trait Implementations§
Source§impl Clone for PeerIdentity
impl Clone for PeerIdentity
Source§impl Debug for PeerIdentity
impl Debug for PeerIdentity
impl Eq for PeerIdentity
Source§impl PartialEq for PeerIdentity
impl PartialEq for PeerIdentity
impl StructuralPartialEq for PeerIdentity
Auto Trait Implementations§
impl Freeze for PeerIdentity
impl RefUnwindSafe for PeerIdentity
impl Send for PeerIdentity
impl Sync for PeerIdentity
impl Unpin for PeerIdentity
impl UnsafeUnpin for PeerIdentity
impl UnwindSafe for PeerIdentity
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