1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Micro actors in Rust.

#![cfg_attr(docsrs, feature(doc_cfg))]

mod prelude;

#[macro_use]
mod macros;

mod actor;
mod addr;
mod ask;
mod ask_envelope;
mod asker;
mod box_future;
mod boxed;
mod cell;
mod context;
mod disconnected;
mod envelope;
mod message;
mod noop_waker_ref;
mod now_or_never;
mod receive;
mod regular_yielder;
mod spawn;
mod tell;
mod tell_envelope;
mod teller;

use ask::Ask;
use ask_envelope::AskEnvelope;
use box_future::BoxFuture;
use boxed::Boxed;
use cell::Cell;
use envelope::Envelope;
use noop_waker_ref::noop_waker_ref;
use now_or_never::NowOrNever;
use regular_yielder::RegularYielder;
use tell::Tell;
use tell_envelope::TellEnvelope;

pub use actor::Actor;
pub use addr::Addr;
pub use asker::Asker;
pub use context::Context;
pub use disconnected::Disconnected;
pub use message::Message;
pub use receive::Receive;
pub use spawn::spawn;
pub use teller::Teller;

#[cfg(feature = "test-util")]
mod probe;

#[cfg(feature = "test-util")]
#[cfg_attr(docsrs, doc(cfg(feature = "test-util")))]
pub use probe::Probe;

#[doc(no_inline)]
pub use async_trait::async_trait;