Struct gstreamer_sdp::MIKEYMessage [−]
pub struct MIKEYMessage(_);
Structure holding the information of the MIKEY message
Methods
impl MIKEYMessage
[src]
impl MIKEYMessage
pub fn new() -> MIKEYMessage
[src]
pub fn new() -> MIKEYMessage
pub fn new_from_caps(caps: &Caps) -> MIKEYMessage
[src]
pub fn new_from_caps(caps: &Caps) -> MIKEYMessage
Makes mikey message including:
- Security Policy Payload
- Key Data Transport Payload
- Key Data Sub-Payload
caps
a gst::Caps
, including SRTP parameters (srtp/srtcp cipher, authorization, key data)
Returns
a MIKEYMessage
,
or None
if there is no srtp information in the caps.
pub fn add_cs_srtp(&mut self, policy: u8, ssrc: u32, roc: u32) -> bool
[src]
pub fn add_cs_srtp(&mut self, policy: u8, ssrc: u32, roc: u32) -> bool
Add a Crypto policy for SRTP to self
.
policy
The security policy applied for the stream with ssrc
ssrc
the SSRC that must be used for the stream
roc
current rollover counter
Returns
true
on success
pub fn add_pke(&mut self, C: MIKEYCacheType, data: &[u8]) -> bool
[src]
pub fn add_pke(&mut self, C: MIKEYCacheType, data: &[u8]) -> bool
Add a new PKE payload to self
with the given parameters.
C
envelope key cache indicator
data_len
the length of data
data
the encrypted envelope key
Returns
true
on success
pub fn add_rand(&mut self, rand: &[u8]) -> bool
[src]
pub fn add_rand(&mut self, rand: &[u8]) -> bool
Add a new RAND payload to self
with the given parameters.
len
the length of rand
rand
random data
Returns
true
on success
pub fn add_rand_len(&mut self, len: u8) -> bool
[src]
pub fn add_rand_len(&mut self, len: u8) -> bool
pub fn add_t_now_ntp_utc(&mut self) -> bool
[src]
pub fn add_t_now_ntp_utc(&mut self) -> bool
Add a new T payload to self
that contains the current time
in NTP-UTC format.
Returns
true
on success
pub fn find_payload(
&self,
type_: MIKEYPayloadType,
nth: u32
) -> Option<MIKEYPayload>
[src]
pub fn find_payload(
&self,
type_: MIKEYPayloadType,
nth: u32
) -> Option<MIKEYPayload>
Find the nth
occurence of the payload with type_
in self
.
type_
a MIKEYPayloadType
nth
payload to find
Returns
the nth
MIKEYPayload
of type_
.
pub fn get_n_cs(&self) -> u32
[src]
pub fn get_n_cs(&self) -> u32
pub fn get_n_payloads(&self) -> u32
[src]
pub fn get_n_payloads(&self) -> u32
pub fn remove_cs_srtp(&mut self, idx: i32) -> bool
[src]
pub fn remove_cs_srtp(&mut self, idx: i32) -> bool
pub fn remove_payload(&mut self, idx: u32) -> bool
[src]
pub fn remove_payload(&mut self, idx: u32) -> bool
pub fn set_info(
&mut self,
version: u8,
type_: MIKEYType,
V: bool,
prf_func: MIKEYPRFFunc,
CSB_id: u32,
map_type: MIKEYMapType
) -> bool
[src]
pub fn set_info(
&mut self,
version: u8,
type_: MIKEYType,
V: bool,
prf_func: MIKEYPRFFunc,
CSB_id: u32,
map_type: MIKEYMapType
) -> bool
Set the information in self
.
version
a version
type_
a MIKEYType
V
verify flag
prf_func
the MIKEYPRFFunc
function to use
CSB_id
the Crypto Session Bundle id
map_type
the GstMIKEYCSIDMapType
Returns
true
on success
pub fn to_caps(&self, caps: &Caps) -> bool
[src]
pub fn to_caps(&self, caps: &Caps) -> bool
Trait Implementations
impl Debug for MIKEYMessage
[src]
impl Debug for MIKEYMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for MIKEYMessage
[src]
impl PartialEq for MIKEYMessage
fn eq(&self, other: &MIKEYMessage) -> bool
[src]
fn eq(&self, other: &MIKEYMessage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MIKEYMessage) -> bool
[src]
fn ne(&self, other: &MIKEYMessage) -> bool
This method tests for !=
.
impl Eq for MIKEYMessage
[src]
impl Eq for MIKEYMessage
impl PartialOrd for MIKEYMessage
[src]
impl PartialOrd for MIKEYMessage
fn partial_cmp(&self, other: &MIKEYMessage) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MIKEYMessage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &MIKEYMessage) -> bool
[src]
fn lt(&self, other: &MIKEYMessage) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &MIKEYMessage) -> bool
[src]
fn le(&self, other: &MIKEYMessage) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &MIKEYMessage) -> bool
[src]
fn gt(&self, other: &MIKEYMessage) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &MIKEYMessage) -> bool
[src]
fn ge(&self, other: &MIKEYMessage) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for MIKEYMessage
[src]
impl Ord for MIKEYMessage
fn cmp(&self, other: &MIKEYMessage) -> Ordering
[src]
fn cmp(&self, other: &MIKEYMessage) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for MIKEYMessage
[src]
impl Hash for MIKEYMessage
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for MIKEYMessage
impl Clone for MIKEYMessage
fn clone(&self) -> MIKEYMessage
fn clone(&self) -> MIKEYMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl StaticType for MIKEYMessage
impl StaticType for MIKEYMessage
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Default for MIKEYMessage
[src]
impl Default for MIKEYMessage
impl Send for MIKEYMessage
[src]
impl Send for MIKEYMessage
Auto Trait Implementations
impl !Sync for MIKEYMessage
impl !Sync for MIKEYMessage