Trait TaskRequestExt

Source
pub trait TaskRequestExt {
    // Required methods
    fn get_id(&self) -> Result<i32, Error>;
    fn get_task<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<<C as Api>::Container<Task>, Error>> + Send
       where C: Api + Send;
    fn get_site<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<Site, Error>> + Send
       where C: Api + Send;
    fn get_target_bands<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<<C as Api>::Container<Vec<Band>>, Error>> + Send
       where C: Api + Send;
    fn get_config<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<SiteConfiguration, Error>> + Send
       where C: Api + Send;
    fn get_satellite<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<Satellite, Error>> + Send
       where C: Api + Send;
    fn get_user<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<User, Error>> + Send
       where C: Api + Send;
}

Required Methods§

Source

fn get_id(&self) -> Result<i32, Error>

Source

fn get_task<C>( &self, client: &C, ) -> impl Future<Output = Result<<C as Api>::Container<Task>, Error>> + Send
where C: Api + Send,

Source

fn get_site<C>( &self, client: &C, ) -> impl Future<Output = Result<Site, Error>> + Send
where C: Api + Send,

Source

fn get_target_bands<C>( &self, client: &C, ) -> impl Future<Output = Result<<C as Api>::Container<Vec<Band>>, Error>> + Send
where C: Api + Send,

Source

fn get_config<C>( &self, client: &C, ) -> impl Future<Output = Result<SiteConfiguration, Error>> + Send
where C: Api + Send,

Source

fn get_satellite<C>( &self, client: &C, ) -> impl Future<Output = Result<Satellite, Error>> + Send
where C: Api + Send,

Source

fn get_user<C>( &self, client: &C, ) -> impl Future<Output = Result<User, Error>> + Send
where C: Api + Send,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§