pub struct TelemetryClient { /* private fields */ }Expand description
ctx.telemetry — read the vehicle state and extend the heartbeat schema.
Implementations§
Source§impl TelemetryClient
impl TelemetryClient
Sourcepub async fn subscribe(
&self,
callback: EventCallback,
) -> Result<(), ClientError>
pub async fn subscribe( &self, callback: EventCallback, ) -> Result<(), ClientError>
Receive the vehicle-state snapshot (armed, mode, position, attitude,
battery, …), the newest at most ten times a second. The callback gets
the state object itself, a map keyed as the agent’s state wire. A node
with no flight controller never fires it. Needs telemetry.read.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryClient
impl !UnwindSafe for TelemetryClient
impl Freeze for TelemetryClient
impl Send for TelemetryClient
impl Sync for TelemetryClient
impl Unpin for TelemetryClient
impl UnsafeUnpin for TelemetryClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more