pub struct PrintContext {
pub bounds: EffectiveBounds,
pub detector: Option<DetectorHealth>,
pub interventions: Vec<Intervention>,
pub job: Option<JobSnapshot>,
pub latest_image: Option<ImageRef>,
pub manifest: Option<JobManifest>,
pub print: PrintRecord,
pub printer: Option<PrinterSnapshot>,
pub recent_events: Vec<EventRecord>,
}Expand description
Everything a supervision turn is given about one print.
Fields§
§bounds: EffectiveBoundsThe limits in force, so that the agent can see them before it asks.
detector: Option<DetectorHealth>The failure detector’s health, and since when it has been so.
interventions: Vec<Intervention>The interventions still active.
job: Option<JobSnapshot>The job, when a snapshot could be taken.
latest_image: Option<ImageRef>The most recent image, when there is one.
manifest: Option<JobManifest>The manifest, when the print has one.
print: PrintRecordThe print itself.
printer: Option<PrinterSnapshot>The printer, when a snapshot could be taken.
recent_events: Vec<EventRecord>A bounded list of this print’s events, newest first.
Trait Implementations§
Source§impl Clone for PrintContext
impl Clone for PrintContext
Source§impl Debug for PrintContext
impl Debug for PrintContext
Source§impl<'de> Deserialize<'de> for PrintContext
impl<'de> Deserialize<'de> for PrintContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrintContext
impl PartialEq for PrintContext
Source§impl Serialize for PrintContext
impl Serialize for PrintContext
impl StructuralPartialEq for PrintContext
Auto Trait Implementations§
impl Freeze for PrintContext
impl RefUnwindSafe for PrintContext
impl Send for PrintContext
impl Sync for PrintContext
impl Unpin for PrintContext
impl UnsafeUnpin for PrintContext
impl UnwindSafe for PrintContext
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