pub enum IncomingEncryptionMode {
Raw,
Tls(TlsAcceptor),
}
Expand description
Incoming encryption mode
Variants§
Raw
Accept sockets raw, with no encryption
Tls(TlsAcceptor)
Accept sockets and establish a secure connection
Trait Implementations§
source§impl Clone for IncomingEncryptionMode
impl Clone for IncomingEncryptionMode
source§fn clone(&self) -> IncomingEncryptionMode
fn clone(&self) -> IncomingEncryptionMode
Returns a copy 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 IncomingEncryptionMode
impl !RefUnwindSafe for IncomingEncryptionMode
impl Send for IncomingEncryptionMode
impl Sync for IncomingEncryptionMode
impl Unpin for IncomingEncryptionMode
impl !UnwindSafe for IncomingEncryptionMode
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