#[non_exhaustive]pub enum LateOutcome {
Render(BoxError),
Ignored,
End,
}Expand description
What dispatch_late tells the transport to do with an error raised after its reply began
streaming (transports DESIGN §2.3, X7). An Err item cannot change a status, so every outcome
is rendered in the transport’s mid-stream form.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Render(BoxError)
Render this error in the mid-stream form: the original when no error handler claimed it, or the error the last handler returned, reshaped.
Ignored
An error handler answered Ok. Its reply is dropped; the transport logs that and renders
the canonical form of the original error, which it kept before calling dispatch_late,
since the handler took the original by value.
End
An error handler answered Err(EndStream): end the stream as if it had returned None.
Auto Trait Implementations§
impl !RefUnwindSafe for LateOutcome
impl !UnwindSafe for LateOutcome
impl Forget for LateOutcome
impl Freeze for LateOutcome
impl Move for LateOutcome
impl Send for LateOutcome
impl Sync for LateOutcome
impl Unpin for LateOutcome
impl UnsafeUnpin for LateOutcome
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