pub trait Dispatch {
type PayloadType: FromRedisValue;
type Future: Future<Output = TaskResult<Self::PayloadType>>;
// Required method
fn send(&self, data: Entry<Self::PayloadType>) -> Self::Future;
}
Expand description
Interface to dispatch raw message with task information
Required Associated Types§
Sourcetype PayloadType: FromRedisValue
type PayloadType: FromRedisValue
Payload type to use.
Sourcetype Future: Future<Output = TaskResult<Self::PayloadType>>
type Future: Future<Output = TaskResult<Self::PayloadType>>
Future that performs send.
Required Methods§
Sourcefn send(&self, data: Entry<Self::PayloadType>) -> Self::Future
fn send(&self, data: Entry<Self::PayloadType>) -> Self::Future
Starts send.