pub struct PeerChain(/* private fields */);Expand description
The certificate chain a peer presented in the TLS handshake: DER, leaf first, as it arrived. weida parsed only the leaf’s public key, whose fingerprint is the peer; what the rest certifies is the application’s to read (decisions/0035 §4.2).
Bounded before it is kept, because the peer chooses it: at most 8 certificates and 32 KiB together. Captured once per connection and shared, so a clone is a reference count.
Implementations§
Trait Implementations§
impl Eq for PeerChain
impl StructuralPartialEq for PeerChain
Auto Trait Implementations§
impl Forget for PeerChain
impl Freeze for PeerChain
impl Move for PeerChain
impl RefUnwindSafe for PeerChain
impl Send for PeerChain
impl Sync for PeerChain
impl Unpin for PeerChain
impl UnsafeUnpin for PeerChain
impl UnwindSafe for PeerChain
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