pub struct CertificateWatch { /* private fields */ }Expand description
Keeps the debouncer and its pump alive for as long as its owner lives.
Public so an outbound client can hold one too: dropping it silently stops reloads, so its lifetime has to be tied to whatever depends on the material staying current.
Implementations§
Source§impl CertificateWatch
impl CertificateWatch
Sourcepub fn resolver(&self) -> Arc<CertificateResolver> ⓘ
pub fn resolver(&self) -> Arc<CertificateResolver> ⓘ
Shares the listener’s active certificate without reopening its files.
pub fn start<O: TlsObserver>( settings: TlsSettings, resolver: Arc<CertificateResolver>, provider: Arc<CryptoProvider>, observer: Arc<O>, ) -> Result<Self, TlsError>
Trait Implementations§
Source§impl Drop for CertificateWatch
impl Drop for CertificateWatch
Auto Trait Implementations§
impl !RefUnwindSafe for CertificateWatch
impl !UnwindSafe for CertificateWatch
impl Forget for CertificateWatch
impl Freeze for CertificateWatch
impl Move for CertificateWatch
impl Send for CertificateWatch
impl Sync for CertificateWatch
impl Unpin for CertificateWatch
impl UnsafeUnpin for CertificateWatch
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