Skip to main content

WorkerRestApi

Trait WorkerRestApi 

Source
pub trait WorkerRestApi {
    // Required methods
    fn get_workers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        page: Option<&'life1 Page>,
    ) -> Pin<Box<dyn Future<Output = Result<ResultPage<Worker>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn register_worker<'life0, 'async_trait>(
        &'life0 self,
        request: RegisterWorkerRequest,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_worker<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<Worker>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unregister_worker<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_workers<'life0, 'life1, 'async_trait>( &'life0 self, page: Option<&'life1 Page>, ) -> Pin<Box<dyn Future<Output = Result<ResultPage<Worker>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn register_worker<'life0, 'async_trait>( &'life0 self, request: RegisterWorkerRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_worker<'life0, 'async_trait>( &'life0 self, id: i32, ) -> Pin<Box<dyn Future<Output = Result<Worker>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Implementors§