pub trait ObservingConditions: Device + Send + Sync {
Show 18 methods // Provided methods async fn average_period(&self) -> ASCOMResult<f64> { ... } async fn set_average_period(&self, average_period: f64) -> ASCOMResult { ... } async fn cloud_cover(&self) -> ASCOMResult<f64> { ... } async fn dew_point(&self) -> ASCOMResult<f64> { ... } async fn humidity(&self) -> ASCOMResult<f64> { ... } async fn pressure(&self) -> ASCOMResult<f64> { ... } async fn rain_rate(&self) -> ASCOMResult<f64> { ... } async fn sky_brightness(&self) -> ASCOMResult<f64> { ... } async fn sky_quality(&self) -> ASCOMResult<f64> { ... } async fn sky_temperature(&self) -> ASCOMResult<f64> { ... } async fn star_fwhm(&self) -> ASCOMResult<f64> { ... } async fn temperature(&self) -> ASCOMResult<f64> { ... } async fn wind_direction(&self) -> ASCOMResult<f64> { ... } async fn wind_gust(&self) -> ASCOMResult<f64> { ... } async fn wind_speed(&self) -> ASCOMResult<f64> { ... } async fn refresh(&self) -> ASCOMResult { ... } async fn sensor_description( &self, sensor_name: String ) -> ASCOMResult<String> { ... } async fn time_since_last_update( &self, sensor_name: String ) -> ASCOMResult<f64> { ... }
}
Available on crate feature observingconditions only.
Expand description

ObservingConditions Specific Methods

Provided Methods§

source

async fn average_period(&self) -> ASCOMResult<f64>

Gets the time period over which observations will be averaged

source

async fn set_average_period(&self, average_period: f64) -> ASCOMResult

Sets the time period over which observations will be averaged

source

async fn cloud_cover(&self) -> ASCOMResult<f64>

Gets the percentage of the sky obscured by cloud

source

async fn dew_point(&self) -> ASCOMResult<f64>

Gets the atmospheric dew point at the observatory reported in °C.

source

async fn humidity(&self) -> ASCOMResult<f64>

Gets the atmospheric humidity (%) at the observatory

source

async fn pressure(&self) -> ASCOMResult<f64>

Gets the atmospheric pressure in hectoPascals at the observatory’s altitude - NOT reduced to sea level.

source

async fn rain_rate(&self) -> ASCOMResult<f64>

Gets the rain rate (mm/hour) at the observatory.

source

async fn sky_brightness(&self) -> ASCOMResult<f64>

Gets the sky brightness at the observatory (Lux)

source

async fn sky_quality(&self) -> ASCOMResult<f64>

Gets the sky quality at the observatory (magnitudes per square arc second)

source

async fn sky_temperature(&self) -> ASCOMResult<f64>

Gets the sky temperature(°C) at the observatory.

source

async fn star_fwhm(&self) -> ASCOMResult<f64>

Gets the seeing at the observatory measured as star full width half maximum (FWHM) in arc secs.

source

async fn temperature(&self) -> ASCOMResult<f64>

Gets the temperature(°C) at the observatory.

source

async fn wind_direction(&self) -> ASCOMResult<f64>

Gets the wind direction. The returned value must be between 0.0 and 360.0, interpreted according to the metereological standard, where a special value of 0.0 is returned when the wind speed is 0.0. Wind direction is measured clockwise from north, through east, where East=90.0, South=180.0, West=270.0 and North=360.0.

source

async fn wind_gust(&self) -> ASCOMResult<f64>

Gets the peak 3 second wind gust(m/s) at the observatory over the last 2 minutes.

source

async fn wind_speed(&self) -> ASCOMResult<f64>

Gets the wind speed(m/s) at the observatory.

source

async fn refresh(&self) -> ASCOMResult

Forces the driver to immediately query its attached hardware to refresh sensor values.

source

async fn sensor_description(&self, sensor_name: String) -> ASCOMResult<String>

Gets a description of the sensor with the name specified in the SensorName parameter

source

async fn time_since_last_update(&self, sensor_name: String) -> ASCOMResult<f64>

Gets the time since the sensor specified in the SensorName parameter was last updated

Trait Implementations§

source§

impl Hash for dyn ObservingConditions

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
source§

impl PartialEq<dyn ObservingConditions + 'static> for dyn ObservingConditions

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for dyn ObservingConditions

Implementors§