pub trait CaDevice {
// Required methods
fn read(&mut self, buf: &mut [u8]) -> Result<usize>;
fn write(&mut self, buf: &[u8]) -> Result<()>;
fn reset(&mut self) -> Result<()>;
fn slot_info(&mut self) -> Result<SlotInfo>;
fn poll(&mut self, timeout: Duration) -> Result<bool>;
}Expand description
The link-layer device the EN 50221 runtime drives.
All methods mirror the operations a host performs on the CA file descriptor
per EN 50221. Implementations: MockCaDevice (in-memory, for tests +
differential harness) and the linux CaDevice over /dev/dvb/.../ca.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".