pub enum PoolResponse<J, R, A: Address> {
Accepted {
job: JobId,
},
Rejected {
job: JobId,
payload: J,
reason: PoolRejection,
},
Completed {
job: JobId,
result: R,
},
Interrupted {
job: JobId,
payload: J,
reason: PoolInterruption<A>,
},
}Expand description
Complete response protocol for one submitted job.
Variants§
Trait Implementations§
Source§impl<J: Clone, R: Clone, A: Clone + Address> Clone for PoolResponse<J, R, A>
impl<J: Clone, R: Clone, A: Clone + Address> Clone for PoolResponse<J, R, A>
Source§fn clone(&self) -> PoolResponse<J, R, A>
fn clone(&self) -> PoolResponse<J, R, A>
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 moreimpl<J: Eq, R: Eq, A: Eq + Address> Eq for PoolResponse<J, R, A>
impl<J: PartialEq, R: PartialEq, A: PartialEq + Address> StructuralPartialEq for PoolResponse<J, R, A>
Auto Trait Implementations§
impl<J, R, A> Freeze for PoolResponse<J, R, A>
impl<J, R, A> RefUnwindSafe for PoolResponse<J, R, A>
impl<J, R, A> Send for PoolResponse<J, R, A>
impl<J, R, A> Sync for PoolResponse<J, R, A>
impl<J, R, A> Unpin for PoolResponse<J, R, A>
impl<J, R, A> UnsafeUnpin for PoolResponse<J, R, A>
impl<J, R, A> UnwindSafe for PoolResponse<J, R, A>
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