pub struct OutboundSession { /* private fields */ }
Expand description
SRTP session to convert outbound RTP packets into SRTP.
Implementations§
Source§impl OutboundSession
impl OutboundSession
Sourcepub fn protect<T: VecLike>(&mut self, buf: &mut T) -> Result<(), Error>
pub fn protect<T: VecLike>(&mut self, buf: &mut T) -> Result<(), Error>
Convert RTP packet stored in the buf
into SRTP in-place
Sourcepub fn protect_rtcp<T: VecLike>(&mut self, buf: &mut T) -> Result<(), Error>
pub fn protect_rtcp<T: VecLike>(&mut self, buf: &mut T) -> Result<(), Error>
Convert RTCP packet stored in the buf
into SRTCP in-place
Sourcepub fn into_session(self) -> Session
pub fn into_session(self) -> Session
Convert self into the Session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutboundSession
impl RefUnwindSafe for OutboundSession
impl Send for OutboundSession
impl Sync for OutboundSession
impl Unpin for OutboundSession
impl UnwindSafe for OutboundSession
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