Struct srt_protocol::protocol::encryption::Encryption
source · 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 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