[][src]Struct srtp::session::StreamPolicy

pub struct StreamPolicy<'a> {
    pub rtp: CryptoPolicy,
    pub rtcp: CryptoPolicy,
    pub key: &'a [u8],
    pub window_size: u64,
    pub allow_repeat_tx: bool,
    pub encrypt_extension_headers: &'a [i32],
}

SRTP stream policy

Fields

rtp: CryptoPolicy

SRTP crypto policy.

rtcp: CryptoPolicy

SRTCP crypto policy.

key: &'a [u8]

Master key for this stream.

window_size: u64

The window size to use for replay protection.

Pass 0 to use the default value.

allow_repeat_tx: bool

Whether retransmission of packets with the same sequence number are allowed.

Note that such repeated transmission must have the same RTP payload, or a severe security weakness is introduced!

encrypt_extension_headers: &'a [i32]

List of header ids to encrypt.

Trait Implementations

impl<'a> Clone for StreamPolicy<'a>[src]

impl<'a> Copy for StreamPolicy<'a>[src]

impl<'a> Debug for StreamPolicy<'a>[src]

impl<'a> Default for StreamPolicy<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for StreamPolicy<'a>

impl<'a> Send for StreamPolicy<'a>

impl<'a> Sync for StreamPolicy<'a>

impl<'a> Unpin for StreamPolicy<'a>

impl<'a> UnwindSafe for StreamPolicy<'a>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.