pub struct Keys {
pub outbound: Context,
pub inbound: Context,
/* private fields */
}Expand description
The two SRTP contexts a session needs: one to protect with, one to unprotect with.
Fields§
§outbound: ContextProtects what this endpoint sends.
inbound: ContextUnprotects what it receives.
Implementations§
Source§impl Keys
impl Keys
Sourcepub fn into_srtp_keys(self) -> SrtpKeys
pub fn into_srtp_keys(self) -> SrtpKeys
Move the same directional master key and salt pairs into a live media session.
The contexts above exist for users that apply SRTP themselves. A crate::MediaSession
constructs separate RTP and RTCP contexts, so it needs the master material instead; keeping
it here closes that boundary without trying to recover secrets from an opaque context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnsafeUnpin for Keys
impl UnwindSafe for Keys
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more