pub trait TemporalBackend:
Send
+ Sync
+ Debug {
// Required method
fn run(
&self,
worker: &Worker,
request: &Request,
deadline: Duration,
cancel: &AtomicBool,
) -> Dispatch;
}Expand description
A native temporal backend linked into this sail build.
The runtime authenticates the installed worker and admits the job before
calling TemporalBackend::run. The backend owns the worker process and
must independently validate the worker’s evidence against request
before returning Dispatch::Completed; anything it cannot validate is
Dispatch::Failed, never a verdict.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".