pub struct TlsReloadRegistry { /* private fields */ }Expand description
Process-global singleton registry of TLS reload handlers.
Provides a singleton via TlsReloadRegistry::global(). Each TLS-terminating
component registers its handler when it first spawns, and unregisters on
release/eviction.
Implementations§
Source§impl TlsReloadRegistry
impl TlsReloadRegistry
Sourcepub fn global() -> &'static TlsReloadRegistry
pub fn global() -> &'static TlsReloadRegistry
Returns a reference to the process-global singleton.
Sourcepub fn register(&self, handler: Arc<dyn TlsReloadHandler>)
pub fn register(&self, handler: Arc<dyn TlsReloadHandler>)
Register a handler so it can be found later via find.
Sourcepub fn find(
&self,
scheme: &str,
host: &str,
port: u16,
) -> Option<Arc<dyn TlsReloadHandler>>
pub fn find( &self, scheme: &str, host: &str, port: u16, ) -> Option<Arc<dyn TlsReloadHandler>>
Find the handler that matches (scheme, host, port), if any.
Sourcepub fn unregister(&self, scheme: &str, host: &str, port: u16)
pub fn unregister(&self, scheme: &str, host: &str, port: u16)
Remove handlers matching (scheme, host, port). Called on server release/eviction.
Trait Implementations§
Source§impl Default for TlsReloadRegistry
impl Default for TlsReloadRegistry
Source§fn default() -> TlsReloadRegistry
fn default() -> TlsReloadRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TlsReloadRegistry
impl RefUnwindSafe for TlsReloadRegistry
impl Send for TlsReloadRegistry
impl Sync for TlsReloadRegistry
impl Unpin for TlsReloadRegistry
impl UnsafeUnpin for TlsReloadRegistry
impl UnwindSafe for TlsReloadRegistry
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