Trait IntoPinFuture

Source
pub trait IntoPinFuture {
    // Required method
    fn into_pin_future(
        self,
        axon_serve_handle: &AxonServerHandle,
        worker_control: WorkerControl,
    ) -> Pin<Box<dyn Future<Output = ()> + Send>>;
}

Required Methods§

Source

fn into_pin_future( self, axon_serve_handle: &AxonServerHandle, worker_control: WorkerControl, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Implementations on Foreign Types§

Source§

impl<T, F> IntoPinFuture for &'static T
where T: Fn(AxonServerHandle, WorkerControl) -> F, F: Future<Output = ()> + Send + 'static,

Source§

fn into_pin_future( self, axon_serve_handle: &AxonServerHandle, worker_control: WorkerControl, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Source§

impl<T, F> IntoPinFuture for Box<T>
where T: FnOnce(AxonServerHandle, WorkerControl) -> F, F: Future<Output = ()> + Send + 'static,

Source§

fn into_pin_future( self, axon_serve_handle: &AxonServerHandle, worker_control: WorkerControl, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Implementors§