pub trait Rotator:
Device
+ Send
+ Sync {
Show 15 methods
// Required methods
fn is_moving<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, bool>;
fn mechanical_position<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>;
fn position<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>;
fn reverse<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, bool>;
fn set_reverse<'this: 'async_trait, 'async_trait>(
&'this self,
reverse: bool,
) -> ASCOMResultFuture<'async_trait, ()>;
fn target_position<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>;
fn move_<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>;
fn move_absolute<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>;
fn move_mechanical<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>;
fn sync<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>;
// Provided methods
fn can_reverse<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, bool> { ... }
fn step_size<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64> { ... }
fn halt<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, ()> { ... }
fn interface_version<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, i32> { ... }
fn device_state<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, TimestampedDeviceState<DeviceState>> { ... }
}rotator only.Expand description
Rotator Specific Methods.
Required Methods§
Sourcefn is_moving<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, bool>
fn is_moving<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>
async fn is_moving(&self) -> ASCOMResult<bool>True if the rotator is currently moving to a new position.
False if the focuser is stationary.
Sourcefn mechanical_position<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>
fn mechanical_position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>
async fn mechanical_position(&self) -> ASCOMResult<f64>Returns the raw mechanical position of the rotator in degrees.
Sourcefn position<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>
fn position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>
async fn position(&self) -> ASCOMResult<f64>Current instantaneous Rotator position, in degrees.
Sourcefn reverse<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, bool>
fn reverse<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>
async fn reverse(&self) -> ASCOMResult<bool>Returns the rotator’s Reverse state.
Sourcefn set_reverse<'this: 'async_trait, 'async_trait>(
&'this self,
reverse: bool,
) -> ASCOMResultFuture<'async_trait, ()>
fn set_reverse<'this: 'async_trait, 'async_trait>( &'this self, reverse: bool, ) -> ASCOMResultFuture<'async_trait, ()>
async fn set_reverse(&self, reverse: bool) -> ASCOMResult<()>Sets the rotator’s Reverse state.
Sourcefn target_position<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>
fn target_position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>
async fn target_position(&self) -> ASCOMResult<f64>The destination position angle for Move() and MoveAbsolute().
Sourcefn move_<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>
fn move_<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>
async fn move_(&self, position: f64) -> ASCOMResult<()>Causes the rotator to move Position degrees relative to the current Position value.
Sourcefn move_absolute<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>
fn move_absolute<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>
async fn move_absolute(&self, position: f64) -> ASCOMResult<()>Causes the rotator to move the absolute position of Position degrees.
Sourcefn move_mechanical<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>
fn move_mechanical<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>
async fn move_mechanical(&self, position: f64) -> ASCOMResult<()>Causes the rotator to move the mechanical position of Position degrees.
Sourcefn sync<'this: 'async_trait, 'async_trait>(
&'this self,
position: f64,
) -> ASCOMResultFuture<'async_trait, ()>
fn sync<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>
async fn sync(&self, position: f64) -> ASCOMResult<()>Causes the rotator to sync to the position of Position degrees.
Provided Methods§
Sourcefn can_reverse<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, bool>
fn can_reverse<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>
async fn can_reverse(&self) -> ASCOMResult<bool>True if the Rotator supports the Reverse method.
Sourcefn step_size<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, f64>
fn step_size<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>
async fn step_size(&self) -> ASCOMResult<f64>The minimum StepSize, in degrees.
Sourcefn halt<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, ()>
fn halt<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, ()>
async fn halt(&self) -> ASCOMResult<()>Immediately stop any Rotator motion due to a previous Move or MoveAbsolute method call.
Sourcefn interface_version<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, i32>
fn interface_version<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, i32>
async fn interface_version(&self) -> ASCOMResult<i32>This method returns the version of the ASCOM device interface contract to which this device complies.
Only one interface version is current at a moment in time and all new devices should be built to the latest interface version. Applications can choose which device interface versions they support and it is in their interest to support previous versions as well as the current version to ensure thay can use the largest number of devices.
Sourcefn device_state<'this: 'async_trait, 'async_trait>(
&'this self,
) -> ASCOMResultFuture<'async_trait, TimestampedDeviceState<DeviceState>>
fn device_state<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, TimestampedDeviceState<DeviceState>>
Return all operational properties of this device.