pub enum WireCrypt {
Disabled,
Enabled,
Required,
}Expand description
Postura desejada de criptografia da conexão (wire-encryption).
Variants§
Disabled
Nunca criptografa. Falha contra um servidor configurado com WireCrypt = Required.
Enabled
Criptografa quando o servidor oferece uma cifra suportada; caso contrário continua em texto claro.
Required
Exige criptografia; falha o handshake se ela não puder ser negociada.
Trait Implementations§
impl Copy for WireCrypt
impl Eq for WireCrypt
impl StructuralPartialEq for WireCrypt
Auto Trait Implementations§
impl Freeze for WireCrypt
impl RefUnwindSafe for WireCrypt
impl Send for WireCrypt
impl Sync for WireCrypt
impl Unpin for WireCrypt
impl UnsafeUnpin for WireCrypt
impl UnwindSafe for WireCrypt
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