pub enum NoEncryption {}Trait Implementations§
Source§impl Debug for NoEncryption
impl Debug for NoEncryption
Source§impl Encryption for NoEncryption
impl Encryption for NoEncryption
fn args_size(&self) -> u8
fn public_key(&self) -> PublicKey
fn authenticator(&self) -> Authenticator
fn handshake(&mut self, _peer: PublicKey) -> Result<(), EncryptionError>
fn authenticate(&mut self, _peer: Authenticator) -> Result<(), EncryptionError>
fn encrypt( &mut self, _head: &SessionHeader, _args: &mut [u8], _data: &mut [u8], ) -> Result<(), EncryptionError>
fn decrypt( &mut self, _head: &SessionHeader, _args: &[u8], _data: &mut [u8], ) -> Result<(), EncryptionError>
Auto Trait Implementations§
impl Freeze for NoEncryption
impl RefUnwindSafe for NoEncryption
impl Send for NoEncryption
impl Sync for NoEncryption
impl Unpin for NoEncryption
impl UnsafeUnpin for NoEncryption
impl UnwindSafe for NoEncryption
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