rx_core_common/signals/signal.rs
1/// # [Signal]
2///
3/// A [Signal] is what can be used as the output of an
4/// [Observable][crate::Observable] or as the input of an
5/// [Observer][crate::Observer]
6///
7/// ## Trait Bounds
8///
9/// - `'static`: Signals must always outlive their subscribers
10/// - `Send + Sync`: Must be able to cross thread boundaries
11pub trait Signal: 'static + Send + Sync {}
12
13impl<T> Signal for T where T: 'static + Send + Sync {}