Struct hls_m3u8::tags::ExtXKey [−][src]
pub struct ExtXKey { /* fields omitted */ }
Methods
impl ExtXKey
[src]
impl ExtXKey
pub fn new(key: DecryptionKey) -> Self
[src]
pub fn new(key: DecryptionKey) -> Self
Makes a new ExtXKey
tag.
pub fn new_without_key() -> Self
[src]
pub fn new_without_key() -> Self
Makes a new ExtXKey
tag without a decryption key.
This tag has the METHDO=NONE
attribute.
pub fn key(&self) -> Option<&DecryptionKey>
[src]
pub fn key(&self) -> Option<&DecryptionKey>
Returns the decryption key for the following media segments and media initialization sections.
pub fn requires_version(&self) -> ProtocolVersion
[src]
pub fn requires_version(&self) -> ProtocolVersion
Returns the protocol compatibility version that this tag requires.
Trait Implementations
impl Debug for ExtXKey
[src]
impl Debug for ExtXKey
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 Clone for ExtXKey
[src]
impl Clone for ExtXKey
fn clone(&self) -> ExtXKey
[src]
fn clone(&self) -> ExtXKey
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 PartialEq for ExtXKey
[src]
impl PartialEq for ExtXKey
fn eq(&self, other: &ExtXKey) -> bool
[src]
fn eq(&self, other: &ExtXKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExtXKey) -> bool
[src]
fn ne(&self, other: &ExtXKey) -> bool
This method tests for !=
.
impl Eq for ExtXKey
[src]
impl Eq for ExtXKey
impl Hash for ExtXKey
[src]
impl Hash for ExtXKey
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 Display for ExtXKey
[src]
impl Display for ExtXKey
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 FromStr for ExtXKey
[src]
impl FromStr for ExtXKey
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
fn from_str(s: &str) -> Result<Self>
Parses a string s
to return a value of this type. Read more
impl From<ExtXKey> for MediaSegmentTag
[src]
impl From<ExtXKey> for MediaSegmentTag