pub enum BeforeEndpointAction {
Patch(Box<EndpointContextPatch>),
Respond(EndpointResponse),
Reject(EndpointResponse),
}Expand description
A before hook can accumulate input changes or finish without reaching the handler/after hooks.
Variants§
Patch(Box<EndpointContextPatch>)
Respond(EndpointResponse)
Reject(EndpointResponse)
Reject with an intentional API error and its complete public body.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BeforeEndpointAction
impl !UnwindSafe for BeforeEndpointAction
impl Freeze for BeforeEndpointAction
impl Send for BeforeEndpointAction
impl Sync for BeforeEndpointAction
impl Unpin for BeforeEndpointAction
impl UnsafeUnpin for BeforeEndpointAction
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