Skip to main content

LookAnswer

Type Alias LookAnswer 

Source
pub type LookAnswer = Look;
Expand description

What a fresh look answers: the look, as the supervision core took it.

Its image_path is absolute on this server’s own filesystem, exactly as ContextAnswer’s is.

Aliased Type§

pub struct LookAnswer {
    pub event: EventRecord,
    pub arrived: Vec<EventRecord>,
    pub frame: Option<ImageRef>,
    pub image_path: Option<PathBuf>,
    pub image_note: Option<String>,
    pub printer: Option<PrinterSnapshot>,
    pub job: Option<JobSnapshot>,
    pub detector_paused: bool,
}

Fields§

§event: EventRecord

The look itself, as it was written into the print’s history — or the printer’s, for a look at the printer — carrying the frame as its image when there is one.

§arrived: Vec<EventRecord>

The events for this print that arrived while the look waited, oldest first; the look returned early when there were any.

§frame: Option<ImageRef>

The frame the camera gave, absent when no camera is configured or it gave none — which the history records as a port failure.

§image_path: Option<PathBuf>

The absolute path the frame’s bytes are at, on the supervisor’s host.

§image_note: Option<String>

What the image at image_path is, and why it is that one, in one line; absent with no image, or when what made it says nothing.

§printer: Option<PrinterSnapshot>

The printer’s state now, absent when it could not be read.

§job: Option<JobSnapshot>

The job the printer reports now, absent when it could not be read.

§detector_paused: bool

Whether the print is paused and the pause is the detector’s, which is what an adjustment asked for now would be applied under.