pub struct MatchWithHandlers<Handlers>(pub PhantomData<Handlers>);Tuple Fields§
§0: PhantomData<Handlers>Trait Implementations§
Source§impl<Context, Code, Input, Output, Remainder, Handlers> AsyncComputer<Context, Code, Input> for MatchWithHandlers<Handlers>where
Input: HasExtractor,
DispatchMatchers<Handlers>: AsyncComputer<Context, Code, Input::Extractor, Output = Result<Output, Remainder>>,
Remainder: FinalizeExtract,
impl<Context, Code, Input, Output, Remainder, Handlers> AsyncComputer<Context, Code, Input> for MatchWithHandlers<Handlers>where
Input: HasExtractor,
DispatchMatchers<Handlers>: AsyncComputer<Context, Code, Input::Extractor, Output = Result<Output, Remainder>>,
Remainder: FinalizeExtract,
type Output = Output
async fn compute_async( context: &Context, code: PhantomData<Code>, input: Input, ) -> Output
Source§impl<Context, Code, Input, Output, Remainder, Handlers> Computer<Context, Code, Input> for MatchWithHandlers<Handlers>where
Input: HasExtractor,
DispatchMatchers<Handlers>: Computer<Context, Code, Input::Extractor, Output = Result<Output, Remainder>>,
Remainder: FinalizeExtract,
impl<Context, Code, Input, Output, Remainder, Handlers> Computer<Context, Code, Input> for MatchWithHandlers<Handlers>where
Input: HasExtractor,
DispatchMatchers<Handlers>: Computer<Context, Code, Input::Extractor, Output = Result<Output, Remainder>>,
Remainder: FinalizeExtract,
impl<Context, Code, Input, Output, Remainder, Handlers> IsProviderFor<AsyncComputerComponent, Context, (Code, Input)> for MatchWithHandlers<Handlers>where
Input: HasExtractor,
DispatchMatchers<Handlers>: IsProviderFor<AsyncComputerComponent, Context, (Code, Input::Extractor)> + AsyncComputer<Context, Code, Input::Extractor, Output = Result<Output, Remainder>>,
Remainder: FinalizeExtract,
impl<Context, Code, Input, Output, Remainder, Handlers> IsProviderFor<ComputerComponent, Context, (Code, Input)> for MatchWithHandlers<Handlers>where
Input: HasExtractor,
DispatchMatchers<Handlers>: IsProviderFor<ComputerComponent, Context, (Code, Input::Extractor)> + Computer<Context, Code, Input::Extractor, Output = Result<Output, Remainder>>,
Remainder: FinalizeExtract,
Auto Trait Implementations§
impl<Handlers> Freeze for MatchWithHandlers<Handlers>
impl<Handlers> RefUnwindSafe for MatchWithHandlers<Handlers>where
Handlers: RefUnwindSafe,
impl<Handlers> Send for MatchWithHandlers<Handlers>where
Handlers: Send,
impl<Handlers> Sync for MatchWithHandlers<Handlers>where
Handlers: Sync,
impl<Handlers> Unpin for MatchWithHandlers<Handlers>where
Handlers: Unpin,
impl<Handlers> UnwindSafe for MatchWithHandlers<Handlers>where
Handlers: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more