Trait redis_queue::manager::dispatch::Dispatch
source · 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.