pub enum LayerAction {
Forward(ProxyRequest),
Respond(ProxyResponse),
}Expand description
Action a middleware layer can take on a request.
Variants§
Forward(ProxyRequest)
Forward the (possibly modified) request to the next layer.
Respond(ProxyResponse)
Short-circuit and return this response immediately.
Auto Trait Implementations§
impl !Freeze for LayerAction
impl !RefUnwindSafe for LayerAction
impl Send for LayerAction
impl Sync for LayerAction
impl Unpin for LayerAction
impl UnsafeUnpin for LayerAction
impl !UnwindSafe for LayerAction
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