pub enum FinalMethodOutcome<T> {
Complete(CompleteResult<T>),
InputRequired(InputRequiredResult),
}Expand description
One application-authored result of a final method that may require input.
The InputRequired branch lets a handler describe its embedded input map.
The router validates those descriptors, discards any handler-authored
request state or open result members, and mints the only retry state it
will later accept. Legacy handler defaults continue to produce only the
exact legacy projection promoted as Self::Complete.
Variants§
Complete(CompleteResult<T>)
Complete the request with its method-specific final payload.
InputRequired(InputRequiredResult)
Ask the final peer for additional input before retrying the request.
Trait Implementations§
Source§impl<T: Clone> Clone for FinalMethodOutcome<T>
impl<T: Clone> Clone for FinalMethodOutcome<T>
Source§fn clone(&self) -> FinalMethodOutcome<T>
fn clone(&self) -> FinalMethodOutcome<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for FinalMethodOutcome<T>
impl<T: Debug> Debug for FinalMethodOutcome<T>
Source§impl<T> From<CompleteResult<T>> for FinalMethodOutcome<T>
impl<T> From<CompleteResult<T>> for FinalMethodOutcome<T>
Source§fn from(result: CompleteResult<T>) -> Self
fn from(result: CompleteResult<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for FinalMethodOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for FinalMethodOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for FinalMethodOutcome<T>where
T: Send,
impl<T> Sync for FinalMethodOutcome<T>where
T: Sync,
impl<T> Unpin for FinalMethodOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for FinalMethodOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FinalMethodOutcome<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).