pub struct KeyedCommand<A, Key, Role, Job, WorkerResult>where
A: Address + EndpointAddress,{ /* private fields */ }Expand description
One application command accepted by a keyed pool.
Implementations§
Source§impl<A, Key, Role, Job, WorkerResult> KeyedCommand<A, Key, Role, Job, WorkerResult>where
A: Address + EndpointAddress,
impl<A, Key, Role, Job, WorkerResult> KeyedCommand<A, Key, Role, Job, WorkerResult>where
A: Address + EndpointAddress,
Sourcepub fn submit<Route>(
submission: SubmissionId,
key: Key,
payload: Job,
customer: Route,
) -> Self
pub fn submit<Route>( submission: SubmissionId, key: Key, payload: Job, customer: Route, ) -> Self
Submit one affinity key, payload, correlation, and customer capability.
Sourcepub fn rebalance<Route>(
request: BindingRequestId,
key: Key,
expected: BindingExpectation,
target: Role,
reply: Route,
) -> Self
pub fn rebalance<Route>( request: BindingRequestId, key: Key, expected: BindingExpectation, target: Role, reply: Route, ) -> Self
Request generation-exact affinity for an absent or retained key.
Sourcepub fn unbind<Route>(
request: BindingRequestId,
key: Key,
expected: BindingExpectation,
reply: Route,
) -> Self
pub fn unbind<Route>( request: BindingRequestId, key: Key, expected: BindingExpectation, reply: Route, ) -> Self
Remove one exact retained binding or report that absence was current.
Sourcepub const fn binding(command: BindingCommand<A, Key, Role>) -> Self
pub const fn binding(command: BindingCommand<A, Key, Role>) -> Self
Retry a complete binding command returned by an earlier reply.
Auto Trait Implementations§
impl<A, Key, Role, Job, WorkerResult> Freeze for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: Freeze,
Job: Freeze,
A: Freeze,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: Freeze,
Role: Freeze,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Freeze,
impl<A, Key, Role, Job, WorkerResult> RefUnwindSafe for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: RefUnwindSafe,
Job: RefUnwindSafe,
A: RefUnwindSafe,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: RefUnwindSafe,
Role: RefUnwindSafe,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: RefUnwindSafe,
impl<A, Key, Role, Job, WorkerResult> Send for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: Send,
Job: Send,
A: Send,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: Send,
Role: Send,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Send,
impl<A, Key, Role, Job, WorkerResult> Sync for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: Sync,
Job: Sync,
A: Sync,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: Sync,
Role: Sync,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Sync,
impl<A, Key, Role, Job, WorkerResult> Unpin for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: Unpin,
Job: Unpin,
A: Unpin,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: Unpin,
Role: Unpin,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Unpin,
impl<A, Key, Role, Job, WorkerResult> UnsafeUnpin for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: UnsafeUnpin,
Job: UnsafeUnpin,
A: UnsafeUnpin,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: UnsafeUnpin,
Role: UnsafeUnpin,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: UnsafeUnpin,
impl<A, Key, Role, Job, WorkerResult> UnwindSafe for KeyedCommand<A, Key, Role, Job, WorkerResult>where
Key: UnwindSafe,
Job: UnwindSafe,
A: UnwindSafe,
<A as EndpointAddress>::Established<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>: UnwindSafe,
Role: UnwindSafe,
<A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: 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