[][src]Struct srtp::Srtp

pub struct Srtp { /* fields omitted */ }

Methods

impl Srtp[src]

pub fn new(
    ssrc_type: SsrcType,
    rtp_policy: CryptoPolicy,
    rtcp_policy: CryptoPolicy,
    key: &[u8]
) -> Result<Self, Error>
[src]

pub fn protect(&mut self, data: &mut BytesMut) -> Result<(), Error>[src]

pub fn protect_rtcp(&mut self, data: &mut BytesMut) -> Result<(), Error>[src]

pub fn unprotect(&mut self, data: &mut BytesMut) -> Result<(), Error>[src]

pub fn unprotect_rtcp(&mut self, data: &mut BytesMut) -> Result<(), Error>[src]

Trait Implementations

impl Drop for Srtp[src]

impl Send for Srtp[src]

impl Debug for Srtp[src]

Auto Trait Implementations

impl !Sync for Srtp

impl Unpin for Srtp

impl RefUnwindSafe for Srtp

impl UnwindSafe for Srtp

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]