pub struct SrtpSession { /* private fields */ }Implementations§
Source§impl SrtpSession
impl SrtpSession
pub fn new( profile: SrtpProfile, tx_keying: SrtpKeyingMaterial, rx_keying: SrtpKeyingMaterial, ) -> Result<Self, SrtpError>
pub fn protect_rtp(&mut self, packet: &mut RtpPacket) -> SrtpResult<()>
pub fn unprotect_rtp(&mut self, packet: &mut RtpPacket) -> SrtpResult<()>
pub fn protect_rtcp(&mut self, packet: &mut Vec<u8>) -> SrtpResult<()>
pub fn unprotect_rtcp(&mut self, packet: &mut Vec<u8>) -> SrtpResult<()>
Auto Trait Implementations§
impl Freeze for SrtpSession
impl RefUnwindSafe for SrtpSession
impl Send for SrtpSession
impl Sync for SrtpSession
impl Unpin for SrtpSession
impl UnwindSafe for SrtpSession
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