rx_core_common 0.2.2

rx_core's core traits and implementations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// # [Signal]
///
/// A [Signal] is what can be used as the output of an
/// [Observable][crate::Observable] or as the input of an
/// [Observer][crate::Observer]
///
/// ## Trait Bounds
///
/// - `'static`: Signals must always outlive their subscribers
/// - `Send + Sync`: Must be able to cross thread boundaries
pub trait Signal: 'static + Send + Sync {}

impl<T> Signal for T where T: 'static + Send + Sync {}