Channels

Trait Channels 

Source
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§

Source

type Tx: Sender

The sender type, can be either mpsc, oneshot or none

Source

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.

Implementors§