pub enum ResponseOutcome {
Done(HttpResponseDescriptor),
Retry {
after_ms: u64,
},
Failed {
errcode: String,
error: String,
},
}Expand description
What happened to a request after a shell fed its result back in via
OutgoingQueue::on_response or OutgoingQueue::on_transport_error.
Variants§
Done(HttpResponseDescriptor)
A 2xx response. The pending record has already been deleted.
Retry
The request should be retried (unchanged) after after_ms
milliseconds. The pending record is still tracked; this queue
itself will not offer it again via OutgoingQueue::releasable
until after_ms has elapsed (per the now_ms the caller supplies
to that call).
Failed
A non-retryable error response. The pending record has already
been deleted; the caller maps errcode/error to its own
user-facing failure state.
Trait Implementations§
Source§impl Clone for ResponseOutcome
impl Clone for ResponseOutcome
Source§impl Debug for ResponseOutcome
impl Debug for ResponseOutcome
impl Eq for ResponseOutcome
Source§impl PartialEq for ResponseOutcome
impl PartialEq for ResponseOutcome
impl StructuralPartialEq for ResponseOutcome
Auto Trait Implementations§
impl Freeze for ResponseOutcome
impl RefUnwindSafe for ResponseOutcome
impl Send for ResponseOutcome
impl Sync for ResponseOutcome
impl Unpin for ResponseOutcome
impl UnsafeUnpin for ResponseOutcome
impl UnwindSafe for ResponseOutcome
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