pub enum ExecutionOutcome {
Success {
status: u16,
headers: Vec<ResponseHeader>,
body: Option<Vec<u8>>,
background: Vec<BackgroundTask>,
},
StreamingSuccess {
status: u16,
headers: Vec<ResponseHeader>,
body: StreamingBody,
background: Vec<BackgroundTask>,
},
Upgrade {
upgrade: HttpUpgrade,
background: Vec<BackgroundTask>,
},
Rejected {
status: u16,
code: String,
message: String,
details: Option<Value>,
},
DomainError(OperationFailure),
InternalError {
code: String,
message: String,
},
}Expand description
The protocol-neutral result of executing one operation.
Variants§
Success
StreamingSuccess
Upgrade
Rejected
DomainError(OperationFailure)
InternalError
Implementations§
Trait Implementations§
Source§impl Debug for ExecutionOutcome
impl Debug for ExecutionOutcome
Source§impl From<&ExecutionOutcome> for HookOutcome
impl From<&ExecutionOutcome> for HookOutcome
Source§fn from(outcome: &ExecutionOutcome) -> Self
fn from(outcome: &ExecutionOutcome) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionOutcome
impl !Send for ExecutionOutcome
impl !Sync for ExecutionOutcome
impl !UnwindSafe for ExecutionOutcome
impl Freeze for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcome
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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