pub trait ServerJob: Send {
// Required method
fn poll(&mut self, context: &mut ServerJobContext) -> JobPoll;
// Provided method
fn cancel(&mut self) { ... }
}Expand description
A unit of server work resumed from a known tick stage.
Required Methods§
Sourcefn poll(&mut self, context: &mut ServerJobContext) -> JobPoll
fn poll(&mut self, context: &mut ServerJobContext) -> JobPoll
Polls this job.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".