pub enum RequestPluginResult {
Skipped,
Continue,
Respond(HttpResponse),
}Expand description
A more expressive return type for handle_request.
It clearly states the plugin’s decision.
Variants§
Skipped
The plugin did not run or took no action.
Continue
The plugin ran and modified the request; processing should continue.
Respond(HttpResponse)
The plugin has decided to terminate the request and send an immediate response.
Trait Implementations§
Source§impl PartialEq for RequestPluginResult
impl PartialEq for RequestPluginResult
Auto Trait Implementations§
impl !Freeze for RequestPluginResult
impl RefUnwindSafe for RequestPluginResult
impl Send for RequestPluginResult
impl Sync for RequestPluginResult
impl Unpin for RequestPluginResult
impl UnsafeUnpin for RequestPluginResult
impl UnwindSafe for RequestPluginResult
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