pub enum KeyLogPolicy {
Disabled,
File(PathBuf),
Custom(Arc<dyn KeyLog>),
}Expand description
Policy governing TLS session-secret export.
This type is Clone; cloning a Custom variant clones the Arc, sharing
the same underlying logger instance.
Variants§
Disabled
Session secrets are not exported (default).
File(PathBuf)
Session secrets are appended to the given file in NSS Key Log Format.
Custom(Arc<dyn KeyLog>)
Session secrets are forwarded to a custom KeyLog implementation.
Trait Implementations§
Source§impl Clone for KeyLogPolicy
impl Clone for KeyLogPolicy
Source§fn clone(&self) -> KeyLogPolicy
fn clone(&self) -> KeyLogPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyLogPolicy
impl !RefUnwindSafe for KeyLogPolicy
impl Send for KeyLogPolicy
impl Sync for KeyLogPolicy
impl Unpin for KeyLogPolicy
impl UnsafeUnpin for KeyLogPolicy
impl !UnwindSafe for KeyLogPolicy
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