pub trait PositionProbe: Send + Sync {
// Required method
fn read_position(&self) -> BoxFuture<'_, Option<HeadPosition>>;
}Expand description
What reads the print head’s position for the watch.
The server’s own: it asks the printer and reads the answer off the push channel. Answers nothing when no position could be read.
Required Methods§
Sourcefn read_position(&self) -> BoxFuture<'_, Option<HeadPosition>>
fn read_position(&self) -> BoxFuture<'_, Option<HeadPosition>>
Read where the head is now.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".