pub struct DeviceReadOutcome {
pub actions: Vec<ProcessAction>,
pub did_compute: bool,
}Expand description
Outcome of a device support read() call.
Allows device support to return side-effect actions (link writes, delayed reprocess) and signal that it has already performed the record’s compute step (e.g., PID calculation).
Fields§
§actions: Vec<ProcessAction>Actions for the framework to execute (WriteDbLink, ReprocessAfter, etc.)
did_compute: boolIf true, the record’s built-in compute (e.g., PID) was already
performed by device support. The record’s process() should skip
its own computation. This replaces the pid_done flag pattern.
Implementations§
Source§impl DeviceReadOutcome
impl DeviceReadOutcome
Sourcepub fn computed_with(actions: Vec<ProcessAction>) -> Self
pub fn computed_with(actions: Vec<ProcessAction>) -> Self
Shorthand for a computed read with actions.
Trait Implementations§
Source§impl Default for DeviceReadOutcome
impl Default for DeviceReadOutcome
Source§fn default() -> DeviceReadOutcome
fn default() -> DeviceReadOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceReadOutcome
impl RefUnwindSafe for DeviceReadOutcome
impl Send for DeviceReadOutcome
impl Sync for DeviceReadOutcome
impl Unpin for DeviceReadOutcome
impl UnsafeUnpin for DeviceReadOutcome
impl UnwindSafe for DeviceReadOutcome
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