pub struct PrinterSnapshot {
pub bed: Option<HeaterSnapshot>,
pub chamber: Option<HeaterSnapshot>,
pub connection: PrinterState,
pub fan_percent: Option<Reported>,
pub feedrate_factor: Option<Reported>,
pub flowrate_factor: Option<Reported>,
pub observed_at: Timestamp,
pub tools: Vec<HeaterSnapshot>,
}Expand description
A printer, as a source reported it at one instant.
Fields§
§bed: Option<HeaterSnapshot>The bed heater, when the printer reports one.
chamber: Option<HeaterSnapshot>The chamber heater, when the printer reports one.
connection: PrinterStateThe state the printer is in.
fan_percent: Option<Reported>The part-cooling fan, in percent.
feedrate_factor: Option<Reported>The feedrate multiplier, where one means one hundred percent.
flowrate_factor: Option<Reported>The flowrate multiplier, where one means one hundred percent.
observed_at: TimestampThe instant this observation was taken.
tools: Vec<HeaterSnapshot>The tool heaters, indexed by tool number.
Trait Implementations§
Source§impl Clone for PrinterSnapshot
impl Clone for PrinterSnapshot
Source§impl Debug for PrinterSnapshot
impl Debug for PrinterSnapshot
Source§impl<'de> Deserialize<'de> for PrinterSnapshot
impl<'de> Deserialize<'de> for PrinterSnapshot
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 PrinterSnapshot
impl PartialEq for PrinterSnapshot
Source§impl Serialize for PrinterSnapshot
impl Serialize for PrinterSnapshot
impl StructuralPartialEq for PrinterSnapshot
Auto Trait Implementations§
impl Freeze for PrinterSnapshot
impl RefUnwindSafe for PrinterSnapshot
impl Send for PrinterSnapshot
impl Sync for PrinterSnapshot
impl Unpin for PrinterSnapshot
impl UnsafeUnpin for PrinterSnapshot
impl UnwindSafe for PrinterSnapshot
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