Trait gaia_tmtc::handler::Handle

source ·
pub trait Handle<Request> {
    type Response;

    // Required method
    fn handle<'life0, 'async_trait>(
        &'life0 mut self,
        request: Request
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn handle<'life0, 'async_trait>( &'life0 mut self, request: Request ) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl Handle<Arc<Tmiv>> for Bus

§

type Response = ()

source§

impl<A, B, Q> Handle<Q> for Either<A, B>
where A: Handle<Q>, B: Handle<Q, Response = A::Response>,

§

type Response = <A as Handle<Q>>::Response

source§

impl<Q, H, K> Handle<Q> for BeforeHook<H, K>
where Q: Send + 'static, H: Handle<K::Output> + Send, K: Hook<Q> + Send, K::Output: Send,

§

type Response = <H as Handle<<K as Hook<Q>>::Output>>::Response

source§

impl<Q, S, X, Y> Handle<Q> for Choice<X, Y>
where Q: Clone + Send + Sync + 'static, X: Handle<Q, Response = Option<S>> + Send, Y: Handle<Q, Response = Option<S>> + Send,

§

type Response = Option<S>