Trait ascom_alpaca::api::Focuser
source · pub trait Focuser: Device + Send + Sync {
// Provided methods
fn absolute<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn is_moving<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn max_increment<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn max_step<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn position<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn step_size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn temp_comp<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn set_temp_comp<'life0, 'async_trait>(
&'life0 self,
temp_comp: bool
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn temp_comp_available<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + 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 halt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn move_<'life0, 'async_trait>(
&'life0 self,
position: i32
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
focuser
only.Expand description
Focuser Specific Methods
Provided Methods§
sourcefn absolute<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn absolute<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
True if the focuser is capable of absolute position; that is, being commanded to a specific step location.
Definition before the #[async_trait]
expansion:
async fn absolute(&self) -> ASCOMResult<bool>
sourcefn is_moving<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_moving<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
True if the focuser is currently moving to a new position. False if the focuser is stationary.
Definition before the #[async_trait]
expansion:
async fn is_moving(&self) -> ASCOMResult<bool>
sourcefn max_increment<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn max_increment<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Maximum increment size allowed by the focuser; i.e. the maximum number of steps allowed in one move operation.
Definition before the #[async_trait]
expansion:
async fn max_increment(&self) -> ASCOMResult<i32>
sourcefn max_step<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn max_step<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Maximum step position permitted.
Definition before the #[async_trait]
expansion:
async fn max_step(&self) -> ASCOMResult<i32>
sourcefn position<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn position<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Current focuser position, in steps.
Definition before the #[async_trait]
expansion:
async fn position(&self) -> ASCOMResult<i32>
sourcefn step_size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn step_size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<f64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Step size (microns) for the focuser.
Definition before the #[async_trait]
expansion:
async fn step_size(&self) -> ASCOMResult<f64>
sourcefn temp_comp<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn temp_comp<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets the state of temperature compensation mode (if available), else always False.
Definition before the #[async_trait]
expansion:
async fn temp_comp(&self) -> ASCOMResult<bool>
sourcefn set_temp_comp<'life0, 'async_trait>(
&'life0 self,
temp_comp: bool
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_temp_comp<'life0, 'async_trait>(
&'life0 self,
temp_comp: bool
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sets the state of temperature compensation mode.
Definition before the #[async_trait]
expansion:
async fn set_temp_comp(&self, temp_comp: bool) -> ASCOMResult
sourcefn temp_comp_available<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn temp_comp_available<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
True if focuser has temperature compensation available.
Definition before the #[async_trait]
expansion:
async fn temp_comp_available(&self) -> ASCOMResult<bool>
sourcefn temperature<'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,
Current ambient temperature as measured by the focuser.
Definition before the #[async_trait]
expansion:
async fn temperature(&self) -> ASCOMResult<f64>
sourcefn halt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn halt<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Immediately stop any focuser motion due to a previous Move(Int32) method call.
Definition before the #[async_trait]
expansion:
async fn halt(&self) -> ASCOMResult
sourcefn move_<'life0, 'async_trait>(
&'life0 self,
position: i32
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn move_<'life0, 'async_trait>(
&'life0 self,
position: i32
) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Moves the focuser by the specified amount or to the specified position depending on the value of the Absolute property.
Definition before the #[async_trait]
expansion:
async fn move_(&self, position: i32) -> ASCOMResult