pub enum SubmitResult {
AlreadySubmitted,
Enqueued,
WasRunning,
}
Expand description
Possible returns from work queue submission.
Variants§
AlreadySubmitted
This work was already in a queue.
Enqueued
The work has been added to the specified queue.
WasRunning
The queue was called from the worker itself, and has been queued to the queue that was running it.
Implementations§
Trait Implementations§
Source§impl Clone for SubmitResult
impl Clone for SubmitResult
Source§fn clone(&self) -> SubmitResult
fn clone(&self) -> SubmitResult
Returns a copy of the value. Read more
1.0.0 · 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 SubmitResult
impl Debug for SubmitResult
impl Copy for SubmitResult
Auto Trait Implementations§
impl Freeze for SubmitResult
impl RefUnwindSafe for SubmitResult
impl Send for SubmitResult
impl Sync for SubmitResult
impl Unpin for SubmitResult
impl UnwindSafe for SubmitResult
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