#[non_exhaustive]pub enum EncryptionMode {
Aes128(Box<Aes128Encryption>),
SampleAes(Box<SampleAesEncryption>),
MpegCenc(Box<MpegCommonEncryption>),
}
Expand description
Encryption mode can be either aes
or cenc
.
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.
Aes128(Box<Aes128Encryption>)
Configuration for AES-128 encryption.
SampleAes(Box<SampleAesEncryption>)
Configuration for SAMPLE-AES encryption.
MpegCenc(Box<MpegCommonEncryption>)
Configuration for MPEG Common Encryption (MPEG-CENC).
Trait Implementations§
Source§impl Clone for EncryptionMode
impl Clone for EncryptionMode
Source§fn clone(&self) -> EncryptionMode
fn clone(&self) -> EncryptionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EncryptionMode
impl Debug for EncryptionMode
Source§impl PartialEq for EncryptionMode
impl PartialEq for EncryptionMode
impl StructuralPartialEq for EncryptionMode
Auto Trait Implementations§
impl Freeze for EncryptionMode
impl RefUnwindSafe for EncryptionMode
impl Send for EncryptionMode
impl Sync for EncryptionMode
impl Unpin for EncryptionMode
impl UnwindSafe for EncryptionMode
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