pub enum Before<I> {
Continue(I),
Respond(Response),
}Expand description
What a before hook decides.
Variants§
Continue(I)
Run the endpoint with this (possibly changed) input.
Respond(Response)
Skip the endpoint and answer with this response.
Auto Trait Implementations§
impl<I> !Freeze for Before<I>
impl<I> !RefUnwindSafe for Before<I>
impl<I> !UnwindSafe for Before<I>
impl<I> Forget for Before<I>
impl<I> Move for Before<I>
impl<I> Send for Before<I>where
I: Send,
impl<I> Sync for Before<I>where
I: Sync,
impl<I> Unpin for Before<I>where
I: Unpin,
impl<I> UnsafeUnpin for Before<I>where
I: UnsafeUnpin,
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