pub enum InterceptDecision {
Continue,
ContinueWith(ContinueOverrides),
Fulfill {
status: u16,
headers: Vec<(String, String)>,
body: Vec<u8>,
phrase: Option<String>,
},
Fail(InterceptFailure),
}Expand description
The answer to one paused request.
Variants§
Continue
Let it through unchanged.
ContinueWith(ContinueOverrides)
Let it through with changes.
Fulfill
Answer it from here; nothing reaches the network.
Fail(InterceptFailure)
Fail it with a network error.
Trait Implementations§
Source§impl Clone for InterceptDecision
impl Clone for InterceptDecision
Source§impl Debug for InterceptDecision
impl Debug for InterceptDecision
Source§impl PartialEq for InterceptDecision
impl PartialEq for InterceptDecision
impl StructuralPartialEq for InterceptDecision
Auto Trait Implementations§
impl Freeze for InterceptDecision
impl RefUnwindSafe for InterceptDecision
impl Send for InterceptDecision
impl Sync for InterceptDecision
impl Unpin for InterceptDecision
impl UnsafeUnpin for InterceptDecision
impl UnwindSafe for InterceptDecision
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