Trait ascom_alpaca::api::Focuser

source ·
pub trait Focuser: Device + Send + Sync {
    // Provided methods
    async fn absolute(&self) -> ASCOMResult<bool> { ... }
    async fn is_moving(&self) -> ASCOMResult<bool> { ... }
    async fn max_increment(&self) -> ASCOMResult<i32> { ... }
    async fn max_step(&self) -> ASCOMResult<i32> { ... }
    async fn position(&self) -> ASCOMResult<i32> { ... }
    async fn step_size(&self) -> ASCOMResult<f64> { ... }
    async fn temp_comp(&self) -> ASCOMResult<bool> { ... }
    async fn set_temp_comp(&self, temp_comp: bool) -> ASCOMResult { ... }
    async fn temp_comp_available(&self) -> ASCOMResult<bool> { ... }
    async fn temperature(&self) -> ASCOMResult<f64> { ... }
    async fn halt(&self) -> ASCOMResult { ... }
    async fn move_(&self, position: i32) -> ASCOMResult { ... }
}
Available on crate feature focuser only.
Expand description

Focuser Specific Methods

Provided Methods§

source

async fn absolute(&self) -> ASCOMResult<bool>

True if the focuser is capable of absolute position; that is, being commanded to a specific step location.

source

async fn is_moving(&self) -> ASCOMResult<bool>

True if the focuser is currently moving to a new position. False if the focuser is stationary.

source

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

Maximum increment size allowed by the focuser; i.e. the maximum number of steps allowed in one move operation.

source

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

Maximum step position permitted.

source

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

Current focuser position, in steps.

source

async fn step_size(&self) -> ASCOMResult<f64>

Step size (microns) for the focuser.

source

async fn temp_comp(&self) -> ASCOMResult<bool>

Gets the state of temperature compensation mode (if available), else always False.

source

async fn set_temp_comp(&self, temp_comp: bool) -> ASCOMResult

Sets the state of temperature compensation mode.

source

async fn temp_comp_available(&self) -> ASCOMResult<bool>

True if focuser has temperature compensation available.

source

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

Current ambient temperature as measured by the focuser.

source

async fn halt(&self) -> ASCOMResult

Immediately stop any focuser motion due to a previous Move(Int32) method call.

source

async fn move_(&self, position: i32) -> ASCOMResult

Moves the focuser by the specified amount or to the specified position depending on the value of the Absolute property.

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<dyn Focuser + 'static> 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§