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

ObservingConditions Specific Methods

Provided Methods§

source

fn average_period<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the time period over which observations will be averaged

Definition before the #[async_trait] expansion:

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

fn set_average_period<'life0, 'async_trait>( &'life0 self, average_period: f64 ) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the time period over which observations will be averaged

Definition before the #[async_trait] expansion:

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

fn cloud_cover<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the percentage of the sky obscured by cloud

Definition before the #[async_trait] expansion:

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

fn dew_point<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn humidity<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the atmospheric humidity (%) at the observatory

Definition before the #[async_trait] expansion:

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

fn pressure<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn rain_rate<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn sky_brightness<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the sky brightness at the observatory (Lux)

Definition before the #[async_trait] expansion:

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

fn sky_quality<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn sky_temperature<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn star_fwhm<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn temperature<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the temperature(°C) at the observatory.

Definition before the #[async_trait] expansion:

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

fn wind_direction<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Definition before the #[async_trait] expansion:

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

fn wind_gust<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn wind_speed<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn refresh<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

async fn refresh(&self) -> ASCOMResult
source

fn sensor_description<'life0, 'async_trait>( &'life0 self, sensor_name: String ) -> Pin<Box<dyn Future<Output = ASCOMResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

fn time_since_last_update<'life0, 'async_trait>( &'life0 self, sensor_name: String ) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Definition before the #[async_trait] expansion:

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

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