#[non_exhaustive]pub struct DrmSystems {
pub widevine: Option<Widevine>,
pub fairplay: Option<Fairplay>,
pub playready: Option<Playready>,
pub clearkey: Option<Clearkey>,
/* private fields */
}
Expand description
Defines configuration for DRM systems in use.
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.widevine: Option<Widevine>
Widevine configuration.
fairplay: Option<Fairplay>
Fairplay configuration.
playready: Option<Playready>
Playready configuration.
clearkey: Option<Clearkey>
Clearkey configuration.
Implementations§
Source§impl DrmSystems
impl DrmSystems
pub fn new() -> Self
Sourcepub fn set_widevine<T>(self, v: T) -> Self
pub fn set_widevine<T>(self, v: T) -> Self
Sets the value of widevine.
Sourcepub fn set_or_clear_widevine<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_widevine<T>(self, v: Option<T>) -> Self
Sets or clears the value of widevine.
Sourcepub fn set_fairplay<T>(self, v: T) -> Self
pub fn set_fairplay<T>(self, v: T) -> Self
Sets the value of fairplay.
Sourcepub fn set_or_clear_fairplay<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_fairplay<T>(self, v: Option<T>) -> Self
Sets or clears the value of fairplay.
Sourcepub fn set_playready<T>(self, v: T) -> Self
pub fn set_playready<T>(self, v: T) -> Self
Sets the value of playready.
Sourcepub fn set_or_clear_playready<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_playready<T>(self, v: Option<T>) -> Self
Sets or clears the value of playready.
Sourcepub fn set_clearkey<T>(self, v: T) -> Self
pub fn set_clearkey<T>(self, v: T) -> Self
Sets the value of clearkey.
Trait Implementations§
Source§impl Clone for DrmSystems
impl Clone for DrmSystems
Source§fn clone(&self) -> DrmSystems
fn clone(&self) -> DrmSystems
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 DrmSystems
impl Debug for DrmSystems
Source§impl Default for DrmSystems
impl Default for DrmSystems
Source§fn default() -> DrmSystems
fn default() -> DrmSystems
Returns the “default value” for a type. Read more
Source§impl PartialEq for DrmSystems
impl PartialEq for DrmSystems
impl StructuralPartialEq for DrmSystems
Auto Trait Implementations§
impl Freeze for DrmSystems
impl RefUnwindSafe for DrmSystems
impl Send for DrmSystems
impl Sync for DrmSystems
impl Unpin for DrmSystems
impl UnwindSafe for DrmSystems
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