pub trait Oneshot: Future {
type Input;
// Required method
fn create(input: Self::Input) -> Self;
}
Available on crate features
worker
and futures
only.Expand description
A future-based worker that for each input, one output is produced.