pub enum Outcome {
Succeeded {
status: u16,
},
Failed {
status: u16,
},
}Expand description
How an operation finished.
Handed to Hook::after, which cannot change it — see the module docs.
Variants§
Succeeded
The operation ran and the response is being written.
Fields
Failed
The operation failed, or a before hook refused it.
Implementations§
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