Skip to main content

FifoCommand

Enum FifoCommand 

Source
pub enum FifoCommand<A, Role, Job, WorkerResult>{
    Submit {
        submission: SubmissionId,
        payload: Job,
        customer: ReplyRoute<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>,
    },
    Shutdown,
}
Expand description

Application commands accepted by one FIFO pool.

Variants§

§

Submit

Submit one payload and its customer correlation and reply capability.

Fields

§submission: SubmissionId

Customer-authored admission correlation.

§payload: Job

Payload retained by the pool while accepted.

§customer: ReplyRoute<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>

Temporary typed customer capability.

§

Shutdown

Close admission and retire the complete owned actor graph.

Implementations§

Source§

impl<A, Role, Job, WorkerResult> FifoCommand<A, Role, Job, WorkerResult>

Source

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

Construct one complete submission without exposing pool internals.

Source

pub const fn shutdown() -> Self

Construct shutdown without a reply placeholder.

Auto Trait Implementations§

§

impl<A, Role, Job, WorkerResult> Freeze for FifoCommand<A, Role, Job, WorkerResult>
where Job: Freeze, A: Freeze, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: Freeze,

§

impl<A, Role, Job, WorkerResult> RefUnwindSafe for FifoCommand<A, Role, Job, WorkerResult>
where Job: RefUnwindSafe, A: RefUnwindSafe, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: RefUnwindSafe,

§

impl<A, Role, Job, WorkerResult> Send for FifoCommand<A, Role, Job, WorkerResult>
where Job: Send, A: Send, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: Send,

§

impl<A, Role, Job, WorkerResult> Sync for FifoCommand<A, Role, Job, WorkerResult>
where Job: Sync, A: Sync, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: Sync,

§

impl<A, Role, Job, WorkerResult> Unpin for FifoCommand<A, Role, Job, WorkerResult>
where Job: Unpin, A: Unpin, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: Unpin,

§

impl<A, Role, Job, WorkerResult> UnsafeUnpin for FifoCommand<A, Role, Job, WorkerResult>
where Job: UnsafeUnpin, A: UnsafeUnpin, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: UnsafeUnpin,

§

impl<A, Role, Job, WorkerResult> UnwindSafe for FifoCommand<A, Role, Job, WorkerResult>
where Job: UnwindSafe, A: UnwindSafe, <A as EndpointAddress>::Established<MessageProtocol<A, FifoOutcome<Role, Job, WorkerResult>>>: 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.