Skip to main content

TaskProviderLocalServerHandler

Trait TaskProviderLocalServerHandler 

Source
pub trait TaskProviderLocalServerHandler<___T: Transport = Channel> {
    // Required method
    fn get_job(
        &mut self,
        responder: Responder<GetJob, ___T>,
    ) -> impl Future<Output = ()>;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
Expand description

A server handler for the TaskProvider protocol.

See TaskProvider for more details.

Required Methods§

Source

fn get_job( &mut self, responder: Responder<GetJob, ___T>, ) -> impl Future<Output = ()>

Returns a job handle for the component requested.

On success, returns a handle with the same rights as the runner’s.

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>

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.

Implementations on Foreign Types§

Source§

impl<___H, ___T> TaskProviderLocalServerHandler<___T> for Local<___H>
where ___H: TaskProviderServerHandler<___T>, ___T: Transport,

Source§

async fn get_job(&mut self, responder: Responder<GetJob, ___T>)

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§