#[non_exhaustive]pub enum EncryptionMethod {
None,
Aes128,
SampleAes,
SampleAesCtr,
Aes256Gcm,
}Expand description
METHOD attribute shared by #EXT-X-KEY/#EXT-X-SESSION-KEY
(RFC 8216bis §4.4.4.4 / §4.4.6.5).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
NONE — not encrypted. The spec disallows this value on
EXT-X-SESSION-KEY specifically (not enforced at parse time here).
Aes128
AES-128 — whole-segment AES-128-CBC.
SampleAes
SAMPLE-AES — per-sample AES (cbcs scheme for fMP4).
SampleAesCtr
SAMPLE-AES-CTR — per-sample AES-CTR (cenc scheme for fMP4).
Aes256Gcm
AES-256-GCM — whole-segment AES-256-GCM.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionMethod
impl Clone for EncryptionMethod
Source§fn clone(&self) -> EncryptionMethod
fn clone(&self) -> EncryptionMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncryptionMethod
Source§impl Debug for EncryptionMethod
impl Debug for EncryptionMethod
Source§impl Display for EncryptionMethod
impl Display for EncryptionMethod
impl Eq for EncryptionMethod
Source§impl PartialEq for EncryptionMethod
impl PartialEq for EncryptionMethod
impl StructuralPartialEq for EncryptionMethod
Auto Trait Implementations§
impl Freeze for EncryptionMethod
impl RefUnwindSafe for EncryptionMethod
impl Send for EncryptionMethod
impl Sync for EncryptionMethod
impl Unpin for EncryptionMethod
impl UnsafeUnpin for EncryptionMethod
impl UnwindSafe for EncryptionMethod
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