pub enum CipherAlgorithm {
Aes256Gcm,
Aes128Cbc,
ChaCha20Poly1305,
}Expand description
Data channel cipher algorithm
Variants§
Aes256Gcm
AES-256-GCM (AEAD, recommended)
Aes128Cbc
AES-128-CBC (legacy)
ChaCha20Poly1305
ChaCha20-Poly1305 (AEAD, modern alternative)
Trait Implementations§
Source§impl Clone for CipherAlgorithm
impl Clone for CipherAlgorithm
Source§fn clone(&self) -> CipherAlgorithm
fn clone(&self) -> CipherAlgorithm
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CipherAlgorithm
impl Debug for CipherAlgorithm
Source§impl Default for CipherAlgorithm
impl Default for CipherAlgorithm
Source§fn default() -> CipherAlgorithm
fn default() -> CipherAlgorithm
Returns the “default value” for a type. Read more
Source§impl PartialEq for CipherAlgorithm
impl PartialEq for CipherAlgorithm
impl Copy for CipherAlgorithm
impl Eq for CipherAlgorithm
impl StructuralPartialEq for CipherAlgorithm
Auto Trait Implementations§
impl Freeze for CipherAlgorithm
impl RefUnwindSafe for CipherAlgorithm
impl Send for CipherAlgorithm
impl Sync for CipherAlgorithm
impl Unpin for CipherAlgorithm
impl UnwindSafe for CipherAlgorithm
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)