pub trait CoverCalibrator: Device + Send + Sync {
    // Provided methods
    async fn brightness(&self) -> ASCOMResult<i32> { ... }
    async fn calibrator_state(&self) -> ASCOMResult<CalibratorStatus> { ... }
    async fn cover_state(&self) -> ASCOMResult<CoverStatus> { ... }
    async fn max_brightness(&self) -> ASCOMResult<i32> { ... }
    async fn calibrator_off(&self) -> ASCOMResult { ... }
    async fn calibrator_on(&self, brightness: i32) -> ASCOMResult { ... }
    async fn close_cover(&self) -> ASCOMResult { ... }
    async fn halt_cover(&self) -> ASCOMResult { ... }
    async fn open_cover(&self) -> ASCOMResult { ... }
}
Available on crate feature covercalibrator only.
Expand description

CoverCalibrator Specific Methods

Provided Methods§

source

async fn brightness(&self) -> ASCOMResult<i32>

Returns the current calibrator brightness in the range 0 (completely off) to MaxBrightness (fully on)

source

async fn calibrator_state(&self) -> ASCOMResult<CalibratorStatus>

Returns the state of the calibration device, if present, otherwise returns “NotPresent”. The calibrator state mode is specified as an integer value from the CalibratorStatus Enum.

source

async fn cover_state(&self) -> ASCOMResult<CoverStatus>

Returns the state of the device cover, if present, otherwise returns “NotPresent”. The cover state mode is specified as an integer value from the CoverStatus Enum.

source

async fn max_brightness(&self) -> ASCOMResult<i32>

The Brightness value that makes the calibrator deliver its maximum illumination.

source

async fn calibrator_off(&self) -> ASCOMResult

Turns the calibrator off if the device has calibration capability.

source

async fn calibrator_on(&self, brightness: i32) -> ASCOMResult

Turns the calibrator on at the specified brightness if the device has calibration capability.

source

async fn close_cover(&self) -> ASCOMResult

Initiates cover closing if a cover is present.

source

async fn halt_cover(&self) -> ASCOMResult

Stops any cover movement that may be in progress if a cover is present and cover movement can be interrupted.

source

async fn open_cover(&self) -> ASCOMResult

Initiates cover opening if a cover is present.

Trait Implementations§

source§

impl Hash for dyn CoverCalibrator

source§

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

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

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

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 CoverCalibrator

Implementors§