Trait ascom_alpaca::api::CoverCalibrator
source · 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 { ... }
}covercalibrator only.Expand description
CoverCalibrator Specific Methods
Provided Methods§
sourceasync fn brightness(&self) -> ASCOMResult<i32>
async fn brightness(&self) -> ASCOMResult<i32>
Returns the current calibrator brightness in the range 0 (completely off) to MaxBrightness (fully on)
sourceasync fn calibrator_state(&self) -> ASCOMResult<CalibratorStatus>
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.
sourceasync fn cover_state(&self) -> ASCOMResult<CoverStatus>
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.
sourceasync fn max_brightness(&self) -> ASCOMResult<i32>
async fn max_brightness(&self) -> ASCOMResult<i32>
The Brightness value that makes the calibrator deliver its maximum illumination.
sourceasync fn calibrator_off(&self) -> ASCOMResult
async fn calibrator_off(&self) -> ASCOMResult
Turns the calibrator off if the device has calibration capability.
sourceasync fn calibrator_on(&self, brightness: i32) -> ASCOMResult
async fn calibrator_on(&self, brightness: i32) -> ASCOMResult
Turns the calibrator on at the specified brightness if the device has calibration capability.
sourceasync fn close_cover(&self) -> ASCOMResult
async fn close_cover(&self) -> ASCOMResult
Initiates cover closing if a cover is present.
sourceasync fn halt_cover(&self) -> ASCOMResult
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.
sourceasync fn open_cover(&self) -> ASCOMResult
async fn open_cover(&self) -> ASCOMResult
Initiates cover opening if a cover is present.