pub trait Oneshot: Future {
    type Input;

    // Required method
    fn create(input: Self::Input) -> Self;
}
Expand description

A future-based worker that for each input, one output is produced.

Required Associated Types§

source

type Input

Incoming message type.

Required Methods§

source

fn create(input: Self::Input) -> Self

Creates an oneshot worker.

Implementors§