absinthe 0.3.0

Are you an Actor & Async junkie? Then your app needs some Absinthe!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::dev::prelude::*;

/// Courier trait, used to interact with actors.
/// Required to use the send! and notify! macros.
#[async_trait]
pub trait Courier<A>
where
    A: Actor,
{    
    /// Send a message to an actor, and wait for a response.
    async fn send_msg(&self, req: A::Request) -> A::Response;

    /// Send a message to an actor, and don't wait for a response.
    async fn notify_msg(&self, req: A::Request);
}