Skip to main content

PoolBehaviorSends

Struct PoolBehaviorSends 

Source
pub struct PoolBehaviorSends<A: Address, J, R, C: Behavior<Addr = A>> {
    pub responses: Vec<Delivery<A, PoolResponse<J, R, A>>>,
    pub assignments: Vec<Delivery<A, ProxyCommand<C>>>,
}
Expand description

Named pool-owned delivery lanes.

Fields§

§responses: Vec<Delivery<A, PoolResponse<J, R, A>>>

Admission and terminal responses addressed to submitters.

§assignments: Vec<Delivery<A, ProxyCommand<C>>>

Assignments addressed to the selected stable worker proxies.

Trait Implementations§

Source§

impl<A: Address, J, R, C: Behavior<Addr = A>> SendAlgebra for PoolBehaviorSends<A, J, R, C>

Source§

fn empty() -> Self

Source§

fn append(&mut self, other: Self)

Source§

fn combine(self, other: Self) -> Self

Source§

fn send<Input, Path>(&mut self, input: Input)
where Self: SendInput<Input, Path>,

Append one request to its statically selected semantic lane.
Source§

fn sending<Input, Path>(input: Input) -> Self
where Self: SendInput<Input, Path>,

Build a send product containing one request in its selected lane.
Source§

impl<A: Address, J, R, C: Behavior<Addr = A>> SendInput<Delivery<A, PoolResponse<J, R, A>>, Own> for PoolBehaviorSends<A, J, R, C>

Source§

fn emit(&mut self, input: Delivery<A, PoolResponse<J, R, A>>)

Source§

impl<A: Address, J, R, C: Behavior<Addr = A>> SendInput<Delivery<A, ProxyCommand<C>>, Own> for PoolBehaviorSends<A, J, R, C>

Source§

fn emit(&mut self, input: Delivery<A, ProxyCommand<C>>)

Auto Trait Implementations§

§

impl<A, J, R, C> Freeze for PoolBehaviorSends<A, J, R, C>

§

impl<A, J, R, C> RefUnwindSafe for PoolBehaviorSends<A, J, R, C>

§

impl<A, J, R, C> Send for PoolBehaviorSends<A, J, R, C>
where J: Send, R: Send, <C as Behavior>::Msg: Send, C: Send, A: Send, <A as Address>::Nonce: Send,

§

impl<A, J, R, C> Sync for PoolBehaviorSends<A, J, R, C>
where J: Sync, R: Sync, <C as Behavior>::Msg: Sync, C: Sync, A: Sync, <A as Address>::Nonce: Sync,

§

impl<A, J, R, C> Unpin for PoolBehaviorSends<A, J, R, C>
where J: Unpin, R: Unpin, <C as Behavior>::Msg: Unpin, C: Unpin, A: Unpin, <A as Address>::Nonce: Unpin,

§

impl<A, J, R, C> UnsafeUnpin for PoolBehaviorSends<A, J, R, C>

§

impl<A, J, R, C> UnwindSafe for PoolBehaviorSends<A, J, R, C>

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.