pub struct ContentEncryption {
pub crc32: Option<Crc32>,
pub void: Option<Void>,
pub content_enc_algo: ContentEncAlgo,
pub content_enc_key_id: Option<ContentEncKeyId>,
pub content_enc_aes_settings: Option<ContentEncAesSettings>,
}Expand description
Settings describing the encryption used. This Element MUST be present if the value of ContentEncodingType is 1 (encryption) and MUST be ignored otherwise. A Matroska Player MAY support encryption.
Fields§
§crc32: Option<Crc32>Optional CRC-32 element for integrity checking.
void: Option<Void>void element, useful for reserving space during writing.
content_enc_algo: ContentEncAlgoThe encryption algorithm used.
- 0 - Not encrypted,
- 1 - DES,
- 2 - 3DES,
- 3 - Twofish,
- 4 - Blowfish,
- 5 - AES
content_enc_key_id: Option<ContentEncKeyId>For public key algorithms this is the ID of the public key the the data was encrypted with.
content_enc_aes_settings: Option<ContentEncAesSettings>Settings describing the encryption algorithm used.
Trait Implementations§
Source§impl Clone for ContentEncryption
impl Clone for ContentEncryption
Source§fn clone(&self) -> ContentEncryption
fn clone(&self) -> ContentEncryption
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 ContentEncryption
impl Debug for ContentEncryption
Source§impl Default for ContentEncryption
impl Default for ContentEncryption
Source§fn default() -> ContentEncryption
fn default() -> ContentEncryption
Returns the “default value” for a type. Read more
Source§impl Element for ContentEncryption
impl Element for ContentEncryption
Source§fn decode_body(buf: &mut &[u8]) -> Result<Self>
fn decode_body(buf: &mut &[u8]) -> Result<Self>
Decode the body of the element from a buffer.
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Encode the body of the element to a buffer.
Source§const HAS_DEFAULT_VALUE: bool = false
const HAS_DEFAULT_VALUE: bool = false
Whether the element has a default value, as per Matroska specification.
If true, and the element is missing in a master element, it should be treated as if it were present with the default value.
If false, and the element is missing in a master element, it should be treated as an error.
Source§impl PartialEq for ContentEncryption
impl PartialEq for ContentEncryption
impl Eq for ContentEncryption
impl StructuralPartialEq for ContentEncryption
Auto Trait Implementations§
impl Freeze for ContentEncryption
impl RefUnwindSafe for ContentEncryption
impl Send for ContentEncryption
impl Sync for ContentEncryption
impl Unpin for ContentEncryption
impl UnsafeUnpin for ContentEncryption
impl UnwindSafe for ContentEncryption
Blanket Implementations§
Source§impl<T> AsyncReadElement for Twhere
T: Element,
impl<T> AsyncReadElement for Twhere
T: Element,
Source§impl<T> AsyncReadFrom for Twhere
T: Element,
impl<T> AsyncReadFrom for Twhere
T: Element,
Source§impl<T> AsyncWriteElement for Twhere
T: Element,
impl<T> AsyncWriteElement for Twhere
T: Element,
Source§impl<T> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
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