pub enum KeyedPoolMessage<A, D, K, J, R>{
Submit {
key: K,
job: JobId,
payload: J,
reply_to: Recipient<D>,
},
Completed {
worker: <D::Addr as Address>::Nonce,
assignment: AssignmentId,
result: R,
},
Rebalance {
key: K,
worker: <D::Addr as Address>::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, D, K: Clone, J: Clone, R: Clone> Clone for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K: Clone, J: Clone, R: Clone> Clone for KeyedPoolMessage<A, D, K, J, R>
Source§fn clone(&self) -> KeyedPoolMessage<A, D, K, J, R>
fn clone(&self) -> KeyedPoolMessage<A, D, K, J, R>
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<A, D, K: PartialEq, J: PartialEq, R: PartialEq> PartialEq for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K: PartialEq, J: PartialEq, R: PartialEq> PartialEq for KeyedPoolMessage<A, D, K, J, R>
Source§fn eq(&self, other: &KeyedPoolMessage<A, D, K, J, R>) -> bool
fn eq(&self, other: &KeyedPoolMessage<A, D, K, J, R>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<A, D, K: Eq, J: Eq, R: Eq> Eq for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K, J, R> StructuralPartialEq for KeyedPoolMessage<A, D, K, J, R>
Auto Trait Implementations§
impl<A, D, K, J, R> Freeze for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K, J, R> RefUnwindSafe for KeyedPoolMessage<A, D, K, J, R>where
K: RefUnwindSafe,
J: RefUnwindSafe,
<A as Address>::Nonce: RefUnwindSafe,
R: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, D, K, J, R> Send for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K, J, R> Sync for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K, J, R> Unpin for KeyedPoolMessage<A, D, K, J, R>
impl<A, D, K, J, R> UnsafeUnpin for KeyedPoolMessage<A, D, K, J, R>where
K: UnsafeUnpin,
J: UnsafeUnpin,
<A as Address>::Nonce: UnsafeUnpin,
R: UnsafeUnpin,
A: UnsafeUnpin,
impl<A, D, K, J, R> UnwindSafe for KeyedPoolMessage<A, D, 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