Skip to main content

KeyedCommand

Struct KeyedCommand 

Source
pub struct KeyedCommand<A, Key, Role, Job, WorkerResult>{ /* 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>

Source

pub fn submit<Route>( submission: SubmissionId, key: Key, payload: Job, customer: Route, ) -> Self
where Route: Into<ReplyRoute<MessageProtocol<A, KeyedOutcome<Key, Role, Job, WorkerResult>>>>,

Submit one affinity key, payload, correlation, and customer capability.

Source

pub fn rebalance<Route>( request: BindingRequestId, key: Key, expected: BindingExpectation, target: Role, reply: Route, ) -> Self
where Route: Into<ReplyRoute<MessageProtocol<A, BindingReply<A, Key, Role>>>>,

Request generation-exact affinity for an absent or retained key.

Source

pub fn unbind<Route>( request: BindingRequestId, key: Key, expected: BindingExpectation, reply: Route, ) -> Self
where Route: Into<ReplyRoute<MessageProtocol<A, BindingReply<A, Key, Role>>>>,

Remove one exact retained binding or report that absence was current.

Source

pub const fn binding(command: BindingCommand<A, Key, Role>) -> Self

Retry a complete binding command returned by an earlier reply.

Source

pub const fn shutdown() -> Self

Close admission and retire the complete owned actor graph.

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>

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.