Skip to main content

StatusSource

Trait StatusSource 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§