pub enum EncryptionType {
Plain,
Dh,
}Expand description
The algorithms that can be used for encryption-in-transit.
If you are writing an ultra-secure program that accesses the secret service, and you want to be sure that your secrets are encrypted while being sent to or retrieved from the service, you can specify either the “crypto-rust” or the “crypto-openssl” feature to this crate and tell it to use Diffie-Hellman shared key encryption when passing secrets. If you don’t specify one of those features, then your only choice is to use no encryption.
Variants§
Plain
Use no encryption when sending/receiving secrets
Dh
Use Diffie-Hellman shared key encryption when sending/receiving secrets
Trait Implementations§
Source§impl Debug for EncryptionType
impl Debug for EncryptionType
Source§impl PartialEq for EncryptionType
impl PartialEq for EncryptionType
impl Eq for EncryptionType
impl StructuralPartialEq for EncryptionType
Auto Trait Implementations§
impl Freeze for EncryptionType
impl RefUnwindSafe for EncryptionType
impl Send for EncryptionType
impl Sync for EncryptionType
impl Unpin for EncryptionType
impl UnwindSafe for EncryptionType
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