pub struct Encryption(/* private fields */);
Implementations§
Source§impl Encryption
impl Encryption
pub fn new(settings: Option<CipherSettings>) -> Self
pub fn encrypt( &mut self, packet: DataPacket, ) -> Option<(usize, DataPacket, Option<KeyingMaterialMessage>)>
pub fn handle_key_refresh_response( &mut self, keying_material: KeyingMaterialMessage, ) -> Result<(), KeyMaterialError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnwindSafe for Encryption
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