Skip to main content

TaskApi

Trait TaskApi 

Source
pub trait TaskApi:
    Debug
    + Send
    + Sync {
    // Required method
    fn call(
        &self,
        request: TaskApiRequest,
    ) -> Pin<Box<dyn Future<Output = TaskApiResponse> + Send + '_>>;
}
Expand description

The API, as the master calls it for tasks: the schedr binary gives it the REST router.

Required Methods§

Source

fn call( &self, request: TaskApiRequest, ) -> Pin<Box<dyn Future<Output = TaskApiResponse> + Send + '_>>

Runs request through the API.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§