pub trait StatusSource {
// Required method
fn fetch_snapshot(&self) -> Result<ReportState, ClientError>;
}Expand description
Something that can produce a printer status snapshot. Abstracted so the CLI and tests don’t depend on the concrete MQTT client.
Required Methods§
fn fetch_snapshot(&self) -> Result<ReportState, ClientError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".