pub enum Outcome {
Respond(Response),
Delegate(DelegateSpec),
}Expand description
Result of dispatching a request: either a final response or a delegation.
Variants§
Respond(Response)
Terminal response — send it to the client.
Delegate(DelegateSpec)
Re-dispatch to another app/resource per the DelegateSpec.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe 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