async_pub_sub 0.2.1

A library aiming at making async pub-sub easier in Rust
Documentation
1
2
3
4
5
6
7
use crate::{Publisher, Subscriber};

/// A trait for types that can both publish and subscribe to messages.
///
/// A `Forwarder` acts as both a `Publisher` and a `Subscriber`, allowing it to receive messages
/// and then potentially resend them or process them in some way before publishing them elsewhere.
pub trait Forwarder: Publisher + Subscriber {}