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§
Sourcefn call(
&self,
request: TaskApiRequest,
) -> Pin<Box<dyn Future<Output = TaskApiResponse> + Send + '_>>
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".