pub enum Outcome {
Sent(HttpResponse),
DryRun(HttpRequest),
}Expand description
What running one operation produced.
The two arms are the gate’s two answers, carried far enough to render: a response that came back, or the request that was not sent. Printing is the adopter’s — this crate decides and executes, and hands the result over.
Variants§
Sent(HttpResponse)
The request went out; this is what came back, status and all. A 4xx is an outcome, not an error: the body that came with it is what a caller needs.
DryRun(HttpRequest)
A write without confirmation. Nothing was sent, and this is the exact request that a confirmed run would have sent.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Outcome
impl !RefUnwindSafe for Outcome
impl !UnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
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