pub struct CertificateLog(Arc<Mutex<Vec<Vec<u8>>>>);Expand description
The CertificateHook most callers want: keep the chain, read it after.
Shipped rather than left to each caller because the storage behind this hook
is the same shared, lock-guarded vector every time, and because it survives
cancellation — a dial abandoned by tokio::time::timeout still leaves
whatever chain it had already seen in the log, where a chain returned
alongside the dial’s result would be dropped with the future.
Tuple Fields§
§0: Arc<Mutex<Vec<Vec<u8>>>>Implementations§
Source§impl CertificateLog
impl CertificateLog
Sourcepub fn hook(&self) -> CertificateHook
pub fn hook(&self) -> CertificateHook
The hook to hand to
QuicDialOptions::observing.
Trait Implementations§
Source§impl Clone for CertificateLog
impl Clone for CertificateLog
Source§impl Debug for CertificateLog
impl Debug for CertificateLog
Auto Trait Implementations§
impl Freeze for CertificateLog
impl RefUnwindSafe for CertificateLog
impl Send for CertificateLog
impl Sync for CertificateLog
impl Unpin for CertificateLog
impl UnsafeUnpin for CertificateLog
impl UnwindSafe for CertificateLog
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