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 { ... }
}
Available on crate feature focuser only.
Expand description

Focuser Specific Methods

Provided Methods§

source

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

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

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

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

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

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

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

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
source

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

Current ambient temperature as measured by the focuser.

Definition before the #[async_trait] expansion:

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

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
source

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

Trait Implementations§

source§

impl Hash for dyn Focuser

source§

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

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

impl PartialEq for dyn Focuser

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 Focuser

Implementors§