Enum tiberius::EncryptionLevel
source · #[repr(u8)]pub enum EncryptionLevel {
Off = 0,
On = 1,
NotSupported = 2,
Required = 3,
}
Expand description
The configured encryption level specifying if encryption is required
Variants§
Off = 0
Only use encryption for the login procedure
On = 1
Encrypt everything if possible
NotSupported = 2
Do not encrypt anything
Required = 3
Encrypt everything and fail if not possible
Trait Implementations§
source§impl Clone for EncryptionLevel
impl Clone for EncryptionLevel
source§fn clone(&self) -> EncryptionLevel
fn clone(&self) -> EncryptionLevel
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 moresource§impl Debug for EncryptionLevel
impl Debug for EncryptionLevel
source§impl PartialEq for EncryptionLevel
impl PartialEq for EncryptionLevel
source§fn eq(&self, other: &EncryptionLevel) -> bool
fn eq(&self, other: &EncryptionLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for EncryptionLevel
impl TryFrom<u32> for EncryptionLevel
source§impl TryFrom<u8> for EncryptionLevel
impl TryFrom<u8> for EncryptionLevel
impl Copy for EncryptionLevel
impl Eq for EncryptionLevel
impl StructuralEq for EncryptionLevel
impl StructuralPartialEq for EncryptionLevel
Auto Trait Implementations§
impl RefUnwindSafe for EncryptionLevel
impl Send for EncryptionLevel
impl Sync for EncryptionLevel
impl Unpin for EncryptionLevel
impl UnwindSafe for EncryptionLevel
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