pub struct TlsCallback { /* private fields */ }Expand description
Thread-safe container for dynamic TLS callback handlers.
Uses ArcSwap to allow lock-free replacement of the handler at runtime.
Implementations§
Source§impl TlsCallback
impl TlsCallback
pub fn new() -> Self
pub fn set_handler(&self, handler: impl TlsCallbackHandler + 'static)
pub fn get_handler(&self) -> Arc<Option<Box<dyn TlsCallbackHandler>>>
Trait Implementations§
Source§impl Clone for TlsCallback
impl Clone for TlsCallback
Source§fn clone(&self) -> TlsCallback
fn clone(&self) -> TlsCallback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TlsCallback
impl !RefUnwindSafe for TlsCallback
impl Send for TlsCallback
impl Sync for TlsCallback
impl Unpin for TlsCallback
impl UnsafeUnpin for TlsCallback
impl !UnwindSafe for TlsCallback
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