#[non_exhaustive]pub struct SessionKey {
pub method: EncryptionMethod,
pub uri: Option<String>,
pub iv: Option<[u8; 16]>,
pub keyformat: Option<String>,
pub keyformatversions: Option<String>,
pub extra_attrs: Vec<(String, String)>,
}Expand description
#EXT-X-SESSION-KEY (RFC 8216bis §4.4.6.5) — preloadable decryption key
info for a MasterPlaylist (Multivariant Playlist only), carrying the
same attributes as #EXT-X-KEY (§4.4.4.4) except that the spec requires
METHOD not be NONE (enforced at parse time).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: EncryptionMethodMETHOD (REQUIRED).
uri: Option<String>URI — REQUIRED unless method is EncryptionMethod::None.
iv: Option<[u8; 16]>IV — 128-bit Initialization Vector.
keyformat: Option<String>KEYFORMAT — absence on the wire implies "identity".
keyformatversions: Option<String>KEYFORMATVERSIONS — absence on the wire implies "1".
extra_attrs: Vec<(String, String)>Unmodeled attributes, retained so REQ- prefixed names can fire
RFC 8216bis §8 row 12. Sorted by name on parse (deterministic).
Trait Implementations§
Source§impl Clone for SessionKey
impl Clone for SessionKey
Source§fn clone(&self) -> SessionKey
fn clone(&self) -> SessionKey
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 moreSource§impl Debug for SessionKey
impl Debug for SessionKey
impl Eq for SessionKey
Source§impl PartialEq for SessionKey
impl PartialEq for SessionKey
impl StructuralPartialEq for SessionKey
Auto Trait Implementations§
impl Freeze for SessionKey
impl RefUnwindSafe for SessionKey
impl Send for SessionKey
impl Sync for SessionKey
impl Unpin for SessionKey
impl UnsafeUnpin for SessionKey
impl UnwindSafe for SessionKey
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