Skip to main content

PositionProbe

Trait PositionProbe 

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

Source

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".

Implementors§