pub struct SwappableCert(ArcSwap<CertifiedKey>);Expand description
A certificate and key that can be swapped out from under live handshakes.
Implements [ResolvesServerCert] so it plugs directly into
ServerConfig::builder().with_cert_resolver(..).
Tuple Fields§
§0: ArcSwap<CertifiedKey>Implementations§
Source§impl SwappableCert
impl SwappableCert
Sourcepub fn new(initial: CertifiedKey) -> Arc<Self>
pub fn new(initial: CertifiedKey) -> Arc<Self>
Wraps initial as the certificate every handshake sees until the
first swap.
Trait Implementations§
Source§impl Debug for SwappableCert
impl Debug for SwappableCert
Source§impl ResolvesServerCert for SwappableCert
impl ResolvesServerCert for SwappableCert
Auto Trait Implementations§
impl !Freeze for SwappableCert
impl !RefUnwindSafe for SwappableCert
impl Send for SwappableCert
impl Sync for SwappableCert
impl Unpin for SwappableCert
impl UnsafeUnpin for SwappableCert
impl !UnwindSafe for SwappableCert
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