[][src]Crate meio

meio - lightweight async actor framework for Rust. The main benefit of this framework is that gives you tiny extension over tokio with full control.

It's designed for professional applications where you can't have strong restrictions and have keep flexibility.

Also this crate has zero-cost runtime. It just calls async method of your type.

Modules

lazy_watch

This module contains Receiver channel that provides instant or delayed shared result.

Macros

wrapper

Creates a struct that will wrap Address and implements Interface and provides basic methods to send messages.

Structs

Address

Address to send messages to Actor.

Context

Context of a Runtime that contains Address and Receiver.

Envelope

Envelope that wraps Handler for Action or Interaction.

Id

Unique Id of Actor's runtime that used to identify all senders for that actor.

Wrapper

Basic interface that just wraps Address of Actor instance.

Enums

AddressError

Error type of interactions with Actor instance.

Term

Termination result of an Actor.

Traits

Action

Action type can be sent to an Actor that implements ActionHandler for that message type.

ActionHandler

Type of Handler to process incoming messages in one-shot style.

Actor

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

Interaction

Interaction type can be sent to an Actor that implements InteractionHandler for that message type. It has to return a response of Output type.

InteractionHandler

Type of Handler to process interaction in request-response style.

Interface

Interface for interaction with Actor.

Functions

spawn

Spawns Actor in Runtime.