Struct srt_protocol::protocol::encryption::Decryption
source · pub struct Decryption(/* private fields */);Implementations§
source§impl Decryption
impl Decryption
pub fn new(settings: Option<CipherSettings>) -> Self
pub fn decrypt( &self, packet: DataPacket ) -> Result<(usize, DataPacket), DecryptionError>
pub fn refresh_key_material( &mut self, keying_material: KeyingMaterialMessage ) -> Result<Option<KeyingMaterialMessage>, KeyMaterialError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Decryption
impl Send for Decryption
impl Sync for Decryption
impl Unpin for Decryption
impl UnwindSafe for Decryption
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