pub struct SlotInfo {
pub num: u8,
pub module_ready: bool,
pub module_present: bool,
}Expand description
CA-device slot status (subset of the Linux ca_slot_info the runtime needs).
The DVB-CA slot reports two independent bits (uapi linux/dvb/ca.h
ca_slot_info.flags): CA_CI_MODULE_PRESENT (a module is physically
inserted) and CA_CI_MODULE_READY (that module has completed its own
init and is usable). A module can be present-but-not-ready briefly after
insertion; the runtime’s hot-plug edge detection
(Notification::HotPlug carrying
HotPlug::CamPresent/
CamRemoved) keys off
module_present, since that is the field that toggles on physical
insert/removal.
Fields§
§num: u8Slot number.
module_ready: booltrue once a module is present and ready (CA_CI_MODULE_READY).
module_present: booltrue while a module is physically inserted (CA_CI_MODULE_PRESENT),
regardless of whether it has finished initialising.
Trait Implementations§
impl Copy for SlotInfo
impl Eq for SlotInfo
impl StructuralPartialEq for SlotInfo
Auto Trait Implementations§
impl Freeze for SlotInfo
impl RefUnwindSafe for SlotInfo
impl Send for SlotInfo
impl Sync for SlotInfo
impl Unpin for SlotInfo
impl UnsafeUnpin for SlotInfo
impl UnwindSafe for SlotInfo
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