pub enum RequestAction {
Continue,
Respond(PluginResponse),
}Expand description
Actions a middleware plugin can take during request processing.
Variants§
Continue
Continue to the next middleware / handler.
Respond(PluginResponse)
Short-circuit with a custom response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestAction
impl RefUnwindSafe for RequestAction
impl Send for RequestAction
impl Sync for RequestAction
impl Unpin for RequestAction
impl UnsafeUnpin for RequestAction
impl UnwindSafe for RequestAction
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