Skip to main content

Telemetry

Trait Telemetry 

Source
pub trait Telemetry {
    type Frame;

    // Required method
    fn next_frame(
        &mut self,
    ) -> impl Future<Output = Result<Option<Self::Frame>>> + Send;
}
Expand description

A device that emits a continuous stream of telemetry frames.

Required Associated Types§

Source

type Frame

A single telemetry frame, for example a status or position report.

Required Methods§

Source

fn next_frame( &mut self, ) -> impl Future<Output = Result<Option<Self::Frame>>> + Send

Awaits the next telemetry frame.

§Returns

Some(frame) when a frame is available, or None once the telemetry stream has ended.

§Errors

Returns Error::Transport if the telemetry link fails while waiting.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§