[][src]Module meio::prelude

Meio prelude module.

Re-exports

pub use crate::handlers::Action;
pub use crate::handlers::ActionHandler;
pub use crate::handlers::Consumer;
pub use crate::handlers::Eliminated;
pub use crate::handlers::Interaction;
pub use crate::handlers::InteractionHandler;
pub use crate::handlers::InterruptedBy;
pub use crate::handlers::Scheduled;
pub use crate::handlers::StartedBy;
pub use crate::handlers::TaskEliminated;
pub use crate::handlers::TryConsumer;
pub use crate::ids::Id;
pub use crate::ids::IdOf;
pub use crate::linkage::Bridge;
pub use crate::signal;
pub use crate::system::System;
pub use crate::task;

Structs

ActionRecipient

Actor-agnosic ActionPerformer.

Address

Address to send messages to Actor.

Context

Context of a ActorRuntime that contains Address and Receiver.

InteractionRecipient

Actor-agnosic InteractionPerformer.

StopReceiver

Contains a receiver with a status of a task.

Enums

Status

Status of the task.

Traits

ActionPerformer

A generic trait for Action functionality. It represents a function with a reaction and can be implemented directly of as an Actor. You can use this trait to have any generic functionality inside other actors that can be replaced by a simple function or a self-performed Actor.

Actor

The main trait. Your structs have to implement it to be compatible with ActorRuntime and Address system.

InteractionPerformer

A generic trait for Interaction functionality. The same as for ActionPerformer. This trait can be implemented be an Actor or just a simple function that can use async Mutex and provide a full functionality without a spawned actor.

Link

Returns a Link to an Actor. Link is a convenient concept for creating wrappers for Address that provides methods instead of using message types directly. It allows also to use private message types opaquely.

LiteTask

Minimalistic actor that hasn't Address.

StopSignal

Just receives a stop signal.