pub trait Channels<S: Service>: Send + 'static {
type Tx: Sender;
type Rx: Receiver;
}Expand description
Trait to specify channels for a message and service
Required Associated Types§
Sourcetype Rx: Receiver
type Rx: Receiver
The receiver type, can be either mpsc, oneshot or none
For many services, the receiver is not needed, so it can be set to NoReceiver.