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

Source

type PayloadType: FromRedisValue

Payload type to use.

Source

type Future: Future<Output = TaskResult<Self::PayloadType>>

Future that performs send.

Required Methods§

Source

fn send(&self, data: Entry<Self::PayloadType>) -> Self::Future

Starts send.

Implementations on Foreign Types§

Source§

impl<T: Dispatch> Dispatch for Box<T>

Source§

type PayloadType = <T as Dispatch>::PayloadType

Source§

type Future = <T as Dispatch>::Future

Source§

fn send(&self, data: Entry<Self::PayloadType>) -> Self::Future

Source§

impl<T: Dispatch> Dispatch for Rc<T>

Source§

type PayloadType = <T as Dispatch>::PayloadType

Source§

type Future = <T as Dispatch>::Future

Source§

fn send(&self, data: Entry<Self::PayloadType>) -> Self::Future

Source§

impl<T: Dispatch> Dispatch for Arc<T>

Source§

type PayloadType = <T as Dispatch>::PayloadType

Source§

type Future = <T as Dispatch>::Future

Source§

fn send(&self, data: Entry<Self::PayloadType>) -> Self::Future

Implementors§