pub enum EncryptionType {
RC4,
AES128,
AES256,
}
Expand description
Valid encryption algorithms that can be sent to the server
Variants§
Implementations§
Source§impl EncryptionType
impl EncryptionType
Sourcepub fn as_constant(&self) -> i32
pub fn as_constant(&self) -> i32
Converts the encryption type into a kerberos_constants::etypes
constant
§Examples
assert_eq!(kerberos_constants::etypes::RC4_HMAC, EncryptionType::RC4.as_constant());
Trait Implementations§
Source§impl Clone for EncryptionType
impl Clone for EncryptionType
Source§fn clone(&self) -> EncryptionType
fn clone(&self) -> EncryptionType
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 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