pub(crate) enum TransportCipher {
ChaCha20Poly1305 = 0,
Aes256Gcm = 1,
}Expand description
Supported ciphers for the transport mode of noise.
Variants§
Trait Implementations§
Source§impl Clone for TransportCipher
impl Clone for TransportCipher
Source§fn clone(&self) -> TransportCipher
fn clone(&self) -> TransportCipher
Returns a duplicate 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 TransportCipher
impl Debug for TransportCipher
Source§impl Default for TransportCipher
impl Default for TransportCipher
Source§fn default() -> TransportCipher
fn default() -> TransportCipher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransportCipher
impl<'de> Deserialize<'de> for TransportCipher
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransportCipher
impl RefUnwindSafe for TransportCipher
impl Send for TransportCipher
impl Sync for TransportCipher
impl Unpin for TransportCipher
impl UnsafeUnpin for TransportCipher
impl UnwindSafe for TransportCipher
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