yaaf 0.2.0

Yet Another Actor Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::message::Message;

/// Automatically implemented.
///
/// Indicates that the implementer is expected to publish messages of
/// type M. This trait should never be implemented directly, rather it should be
/// automatically implemented by the `publish` attribute of the [`Source`] or
/// [`Actor`] derives.
///
/// [`Actor`]: ::yaaf_macros::Actor
/// [`Source`]: ::yaaf_macros::Source
pub trait Publisher<M: Message> {}