Trait bevy_impulse::callback::IntoAsyncCallback

source ·
pub trait IntoAsyncCallback<M> {
    type Request;
    type Response;

    // Required method
    fn into_async_callback(self) -> Callback<Self::Request, Self::Response, ()>;
}

Required Associated Types§

Required Methods§

Implementors§

source§

impl<Request, Task, F> IntoAsyncCallback<AsyncMapCallbackMarker<(Request, Task, ())>> for F
where F: FnMut(Request) -> Task + 'static + Send, Task: Future + 'static + Sendish, Request: 'static + Send + Sync, Task::Output: 'static + Send + Sync,

§

type Request = Request

§

type Response = <Task as Future>::Output

source§

impl<Request, Task, M, Sys> IntoAsyncCallback<AsyncCallbackMarker<(Request, Task, (), M)>> for Sys
where Sys: IntoSystem<Request, Task, M>, Task: Future + 'static + Sendish, Request: 'static + Send + Sync, Task::Output: 'static + Send + Sync,

§

type Request = Request

§

type Response = <Task as Future>::Output