Skip to main content

PressureClient

Trait PressureClient 

Source
pub trait PressureClient {
    // Required method
    fn callback(&self, pressure: Result<u32, ErrorCode>);
}

Required Methods§

Source

fn callback(&self, pressure: Result<u32, ErrorCode>)

Called when a atmospheric pressure reading has completed.

Returns the value in hPa.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§