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
14
use crate::Subscriber;

pub trait SharedDestination<Destination>
where
	Destination: 'static + ?Sized + Subscriber + Send + Sync,
{
	fn access<F>(&mut self, accessor: F)
	where
		F: Fn(&Destination);

	fn access_mut<F>(&mut self, accessor: F)
	where
		F: FnMut(&mut Destination);
}