Struct gstreamer_sdp::MIKEYMessage [−]
pub struct MIKEYMessage(_);
Structure holding the information of the MIKEY message
Methods
impl MIKEYMessage[src]
impl MIKEYMessagepub fn new() -> MIKEYMessage[src]
pub fn new() -> MIKEYMessagepub fn new_from_caps(caps: &Caps) -> MIKEYMessage[src]
pub fn new_from_caps(caps: &Caps) -> MIKEYMessageMakes 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) -> boolAdd 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]) -> boolAdd 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]) -> boolAdd 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) -> boolpub fn add_t_now_ntp_utc(&mut self) -> bool[src]
pub fn add_t_now_ntp_utc(&mut self) -> boolAdd 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) -> u32pub fn get_n_payloads(&self) -> u32[src]
pub fn get_n_payloads(&self) -> u32pub fn remove_cs_srtp(&mut self, idx: i32) -> bool[src]
pub fn remove_cs_srtp(&mut self, idx: i32) -> boolpub fn remove_payload(&mut self, idx: u32) -> bool[src]
pub fn remove_payload(&mut self, idx: u32) -> boolpub 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
) -> boolSet 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) -> boolTrait Implementations
impl Debug for MIKEYMessage[src]
impl Debug for MIKEYMessagefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for MIKEYMessage[src]
impl PartialEq for MIKEYMessagefn eq(&self, other: &MIKEYMessage) -> bool[src]
fn eq(&self, other: &MIKEYMessage) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for MIKEYMessage[src]
impl Eq for MIKEYMessageimpl PartialOrd for MIKEYMessage[src]
impl PartialOrd for MIKEYMessagefn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 MIKEYMessagefn cmp(&self, other: &MIKEYMessage) -> Ordering[src]
fn cmp(&self, other: &MIKEYMessage) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for MIKEYMessage[src]
impl Hash for MIKEYMessagefn 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 MIKEYMessagefn clone(&self) -> MIKEYMessage
fn clone(&self) -> MIKEYMessageReturns 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 MIKEYMessagefn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl Default for MIKEYMessage[src]
impl Default for MIKEYMessageimpl Send for MIKEYMessage[src]
impl Send for MIKEYMessageAuto Trait Implementations
impl !Sync for MIKEYMessage
impl !Sync for MIKEYMessage