pub struct PoolAssignment<J> {
pub assignment: AssignmentId,
pub job: JobId,
pub payload: J,
}Expand description
One assignment accepted by a worker behavior.
Fields§
§assignment: AssignmentId§job: JobId§payload: JTrait Implementations§
Source§impl<J: Clone> Clone for PoolAssignment<J>
impl<J: Clone> Clone for PoolAssignment<J>
Source§fn clone(&self) -> PoolAssignment<J>
fn clone(&self) -> PoolAssignment<J>
Returns a duplicate 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<J: Debug> Debug for PoolAssignment<J>
impl<J: Debug> Debug for PoolAssignment<J>
Source§impl<J: PartialEq> PartialEq for PoolAssignment<J>
impl<J: PartialEq> PartialEq for PoolAssignment<J>
impl<J: Eq> Eq for PoolAssignment<J>
impl<J> StructuralPartialEq for PoolAssignment<J>
Auto Trait Implementations§
impl<J> Freeze for PoolAssignment<J>where
J: Freeze,
impl<J> RefUnwindSafe for PoolAssignment<J>where
J: RefUnwindSafe,
impl<J> Send for PoolAssignment<J>where
J: Send,
impl<J> Sync for PoolAssignment<J>where
J: Sync,
impl<J> Unpin for PoolAssignment<J>where
J: Unpin,
impl<J> UnsafeUnpin for PoolAssignment<J>where
J: UnsafeUnpin,
impl<J> UnwindSafe for PoolAssignment<J>where
J: UnwindSafe,
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