pub enum BodyDecision {
Allow {
body: Bytes,
trace: Trace,
},
Modify {
body: Bytes,
trace: Trace,
},
Block {
reason: String,
trace: Trace,
},
}Expand description
What decide concluded about one request body.
Variants§
Allow
The pipeline allowed the original bytes through.
Fields
Modify
The pipeline rewrote the body. Forward the replacement.
Block
The pipeline refused. Do not call the inner service.
Trait Implementations§
Source§impl Clone for BodyDecision
impl Clone for BodyDecision
Source§fn clone(&self) -> BodyDecision
fn clone(&self) -> BodyDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for BodyDecision
impl RefUnwindSafe for BodyDecision
impl Send for BodyDecision
impl Sync for BodyDecision
impl Unpin for BodyDecision
impl UnsafeUnpin for BodyDecision
impl UnwindSafe for BodyDecision
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