Skip to main content

SendEffects

Trait SendEffects 

Source
pub trait SendEffects: Sized {
    // Required methods
    fn empty() -> Self;
    fn append(&mut self, other: Self);

    // Provided methods
    fn combine(self, other: Self) -> Self { ... }
    fn send<Input, Path>(&mut self, input: Input)
       where Self: SendInput<Input, Path> { ... }
    fn sending<Input, Path>(input: Input) -> Self
       where Self: SendInput<Input, Path> { ... }
}
Expand description

Send effects emitted by a pure actor transition.

Values compose without interpreting them. This keeps communications and interpreter requests inside the explicit crate::Actions boundary.

Required Methods§

Source

fn empty() -> Self

Source

fn append(&mut self, other: Self)

Provided Methods§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> SendEffects for Vec<T>

Source§

fn empty() -> Self

Source§

fn append(&mut self, other: Self)

Implementors§