pub enum KeyedPoolMessage<A: Address, K, J, R> {
Submit {
key: K,
job: JobId,
payload: J,
reply_to: Recipient<A, PoolResponse<J, R, A>>,
},
Completed {
worker: A::Nonce,
assignment: AssignmentId,
result: R,
},
Rebalance {
key: K,
worker: A::Nonce,
},
}Expand description
Messages accepted by a key-persistent pool coordinator.
Rebalance is the only input that can change an established key binding.
It affects later submissions; jobs already accepted retain their selected
stable worker slot.
Variants§
Trait Implementations§
Source§impl<A: Clone + Address, K: Clone, J: Clone, R: Clone> Clone for KeyedPoolMessage<A, K, J, R>
impl<A: Clone + Address, K: Clone, J: Clone, R: Clone> Clone for KeyedPoolMessage<A, K, J, R>
Source§fn clone(&self) -> KeyedPoolMessage<A, K, J, R>
fn clone(&self) -> KeyedPoolMessage<A, K, J, R>
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<A: Eq + Address, K: Eq, J: Eq, R: Eq> Eq for KeyedPoolMessage<A, K, J, R>
Source§impl<A: PartialEq + Address, K: PartialEq, J: PartialEq, R: PartialEq> PartialEq for KeyedPoolMessage<A, K, J, R>
impl<A: PartialEq + Address, K: PartialEq, J: PartialEq, R: PartialEq> PartialEq for KeyedPoolMessage<A, K, J, R>
impl<A: PartialEq + Address, K: PartialEq, J: PartialEq, R: PartialEq> StructuralPartialEq for KeyedPoolMessage<A, K, J, R>
Auto Trait Implementations§
impl<A, K, J, R> Freeze for KeyedPoolMessage<A, K, J, R>
impl<A, K, J, R> RefUnwindSafe for KeyedPoolMessage<A, K, J, R>where
K: RefUnwindSafe,
J: RefUnwindSafe,
<A as Address>::Nonce: RefUnwindSafe,
R: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, K, J, R> Send for KeyedPoolMessage<A, K, J, R>
impl<A, K, J, R> Sync for KeyedPoolMessage<A, K, J, R>
impl<A, K, J, R> Unpin for KeyedPoolMessage<A, K, J, R>
impl<A, K, J, R> UnsafeUnpin for KeyedPoolMessage<A, K, J, R>where
K: UnsafeUnpin,
J: UnsafeUnpin,
<A as Address>::Nonce: UnsafeUnpin,
R: UnsafeUnpin,
A: UnsafeUnpin,
impl<A, K, J, R> UnwindSafe for KeyedPoolMessage<A, K, J, R>where
K: UnwindSafe,
J: UnwindSafe,
<A as Address>::Nonce: UnwindSafe,
R: UnwindSafe,
A: 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