pub struct SrtpContext { /* private fields */ }Implementations§
Source§impl SrtpContext
impl SrtpContext
pub fn new( ssrc: u32, profile: SrtpProfile, keying: SrtpKeyingMaterial, direction: SrtpDirection, ) -> SrtpResult<Self>
pub fn protect_rtcp(&mut self, packet: &mut Vec<u8>) -> SrtpResult<()>
pub fn unprotect_rtcp(&mut self, packet: &mut Vec<u8>) -> SrtpResult<()>
pub fn protect(&mut self, packet: &mut RtpPacket) -> SrtpResult<()>
pub fn unprotect(&mut self, packet: &mut RtpPacket) -> SrtpResult<()>
pub fn ssrc(&self) -> u32
pub fn direction(&self) -> SrtpDirection
Trait Implementations§
Source§impl Clone for SrtpContext
impl Clone for SrtpContext
Source§fn clone(&self) -> SrtpContext
fn clone(&self) -> SrtpContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SrtpContext
impl RefUnwindSafe for SrtpContext
impl Send for SrtpContext
impl Sync for SrtpContext
impl Unpin for SrtpContext
impl UnwindSafe for SrtpContext
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