pub enum WorkerPollOutcome {
Task,
Idle {
poll_status: Option<String>,
reason: Option<String>,
},
Stop {
poll_status: Option<String>,
reason: Option<String>,
},
}Expand description
Stable classification for worker poll responses.
Variants§
Task
A task was leased and is available on the response.
Idle
No task was leased, but the worker should continue polling.
Stop
The server asked this worker to stop claiming new work.
Implementations§
Source§impl WorkerPollOutcome
impl WorkerPollOutcome
pub fn should_stop(&self) -> bool
Trait Implementations§
Source§impl Clone for WorkerPollOutcome
impl Clone for WorkerPollOutcome
Source§fn clone(&self) -> WorkerPollOutcome
fn clone(&self) -> WorkerPollOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerPollOutcome
impl Debug for WorkerPollOutcome
impl Eq for WorkerPollOutcome
Source§impl PartialEq for WorkerPollOutcome
impl PartialEq for WorkerPollOutcome
impl StructuralPartialEq for WorkerPollOutcome
Auto Trait Implementations§
impl Freeze for WorkerPollOutcome
impl RefUnwindSafe for WorkerPollOutcome
impl Send for WorkerPollOutcome
impl Sync for WorkerPollOutcome
impl Unpin for WorkerPollOutcome
impl UnsafeUnpin for WorkerPollOutcome
impl UnwindSafe for WorkerPollOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more