pub struct DriverBounds {
pub stack: StackBounds,
pub max_pending_notifications: usize,
pub slot_ready_grace: Duration,
pub slot_retry: Duration,
}Expand description
The numbers a Driver runs on. The crate supplies none of them.
Fields§
§stack: StackBoundsThe protocol stack’s bounds.
max_pending_notifications: usizeMost Notifications buffered before the driver discards the oldest.
A CAM that keeps sending malformed frames produces one notification per frame, and a host
that only ever calls Driver::pump never drains the queue, so it needs a bound. The
oldest entry is dropped first and every drop is counted in
Driver::notifications_dropped.
slot_ready_grace: DurationHow long past the fixed post-CA_RESET settle window the first write to a still
initialising slot keeps being retried. The kernel’s dvb_ca_en50221_io_write answers
EINVAL until the slot reaches its RUNNING state, and how long the CAM takes to get
there after a reset varies.
slot_retry: DurationPause between retries of a write the slot refused with EINVAL.