pub struct Driver<D: CaDevice> { /* private fields */ }Implementations§
Source§impl<D: CaDevice> Driver<D>
impl<D: CaDevice> Driver<D>
Sourcepub fn device(&self) -> &D
pub fn device(&self) -> &D
Borrow the underlying device (e.g. to inspect a mock’s recorded ops).
Sourcepub fn next_timer(&self) -> Option<Duration>
pub fn next_timer(&self) -> Option<Duration>
The poll delay the stack most recently requested, if any.
Sourcepub fn take_notifications(&mut self) -> Vec<Notification>
pub fn take_notifications(&mut self) -> Vec<Notification>
Drain the notifications collected so far.
Sourcepub fn init(&mut self) -> Result<()>
pub fn init(&mut self) -> Result<()>
Bring the interface up (reset + open the transport connection).
Sourcepub fn send_ca_pmt(&mut self, ca_pmt: &[u8]) -> Result<()>
pub fn send_ca_pmt(&mut self, ca_pmt: &[u8]) -> Result<()>
Request the module descramble the services in ca_pmt (a serialized
ca_pmt APDU body, e.g. from dvb_ci::build_ca_pmt).
Auto Trait Implementations§
impl<D> !RefUnwindSafe for Driver<D>
impl<D> !Send for Driver<D>
impl<D> !Sync for Driver<D>
impl<D> !UnwindSafe for Driver<D>
impl<D> Freeze for Driver<D>where
D: Freeze,
impl<D> Unpin for Driver<D>where
D: Unpin,
impl<D> UnsafeUnpin for Driver<D>where
D: UnsafeUnpin,
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