pub struct Cdm { /* private fields */ }
Expand description
The entry point of PlayReady CDM.
The easiest way to construct it is to use Cdm::from_device()
function.
Implementations§
Source§impl Cdm
impl Cdm
Sourcepub fn from_device(device: Device) -> Self
pub fn from_device(device: Device) -> Self
Creates CDM from the Device
.
Sourcepub fn open_session(&self) -> Session
pub fn open_session(&self) -> Session
Opens new CDM session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cdm
impl RefUnwindSafe for Cdm
impl Send for Cdm
impl Sync for Cdm
impl Unpin for Cdm
impl UnwindSafe for Cdm
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