pub struct TlsAuthConfig {
pub mode: TlsMode,
pub psk: Option<Box<dyn Fn(&mut SslRef, Option<&[u8]>, &mut [u8]) -> Result<usize, Error> + Sync + Send>>,
}Expand description
TLS configuration
Fields§
§mode: TlsMode§psk: Option<Box<dyn Fn(&mut SslRef, Option<&[u8]>, &mut [u8]) -> Result<usize, Error> + Sync + Send>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsAuthConfig
impl !RefUnwindSafe for TlsAuthConfig
impl Send for TlsAuthConfig
impl Sync for TlsAuthConfig
impl Unpin for TlsAuthConfig
impl !UnwindSafe for TlsAuthConfig
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