pub trait FilterWheel: Device + Send + Sync {
    // Provided methods
    fn focus_offsets<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ASCOMResult<Vec<i32>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn names<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ASCOMResult<Vec<String>>> + 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 set_position<'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 filterwheel only.
Expand description

FilterWheel Specific Methods

Provided Methods§

source

fn focus_offsets<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<Vec<i32>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

An integer array of filter focus offsets.

Definition before the #[async_trait] expansion:

async fn focus_offsets(&self) -> ASCOMResult<Vec<i32>>
source

fn names<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ASCOMResult<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The names of the filters

Definition before the #[async_trait] expansion:

async fn names(&self) -> ASCOMResult<Vec<String>>
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,

Returns the current filter wheel position

Definition before the #[async_trait] expansion:

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

fn set_position<'life0, 'async_trait>( &'life0 self, position: i32 ) -> Pin<Box<dyn Future<Output = ASCOMResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the filter wheel position

Definition before the #[async_trait] expansion:

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

Trait Implementations§

source§

impl Hash for dyn FilterWheel

source§

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

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

impl PartialEq for dyn FilterWheel

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 FilterWheel

Implementors§