pub struct ActiveStage { /* private fields */ }Implementations§
Source§impl ActiveStage
impl ActiveStage
Sourcepub fn finish_nonfailure_bounded(
self,
output: Option<&EmergencyDiagnosticHandle>,
axes: &DiagnosticOutcomeAxes,
) -> Result<DiagnosticSubmission, Self>
pub fn finish_nonfailure_bounded( self, output: Option<&EmergencyDiagnosticHandle>, axes: &DiagnosticOutcomeAxes, ) -> Result<DiagnosticSubmission, Self>
Finish a non-technical result without inventing a source receipt. Only Succeeded/Rejected are accepted; all other axes return the untouched stage for the caller to finish through its actual diagnostic receipt path.
Sourcepub fn finish_request_failure<D>(
self,
output: Option<&EmergencyDiagnosticHandle>,
axes: &DiagnosticOutcomeAxes,
reference: &RequestBoundaryReference<D>,
) -> BoundaryDiagnosticDelivery
pub fn finish_request_failure<D>( self, output: Option<&EmergencyDiagnosticHandle>, axes: &DiagnosticOutcomeAxes, reference: &RequestBoundaryReference<D>, ) -> BoundaryDiagnosticDelivery
Ends this stage once using the source receipt’s original context. Missing output changes delivery status only, never the operation or Drop outcome.
Sourcepub fn finish_bounded(
self,
output: &EmergencyDiagnosticHandle,
axes: &DiagnosticOutcomeAxes,
diagnostic: Option<&BoundedDiagnostic>,
) -> DiagnosticSubmission
pub fn finish_bounded( self, output: &EmergencyDiagnosticHandle, axes: &DiagnosticOutcomeAxes, diagnostic: Option<&BoundedDiagnostic>, ) -> DiagnosticSubmission
Finish from independent source-owned axes without constructing SaddleError or allocating a LogRecord. Delivery failure never retries the stage.
Sourcepub fn finish_bounded_reference(
self,
output: &EmergencyDiagnosticHandle,
axes: &DiagnosticOutcomeAxes,
occurrence: Option<DiagnosticOccurrence>,
) -> DiagnosticSubmission
pub fn finish_bounded_reference( self, output: &EmergencyDiagnosticHandle, axes: &DiagnosticOutcomeAxes, occurrence: Option<DiagnosticOccurrence>, ) -> DiagnosticSubmission
Finish with correlation only; never repeats the source detail.
pub fn context(&self) -> &CallContext
pub fn succeed(self)
pub fn reject(self, error: &SaddleError)
pub fn fail(self, error: &SaddleError)
Trait Implementations§
Source§impl Drop for ActiveStage
impl Drop for ActiveStage
Auto Trait Implementations§
impl Freeze for ActiveStage
impl RefUnwindSafe for ActiveStage
impl Send for ActiveStage
impl Sync for ActiveStage
impl Unpin for ActiveStage
impl UnsafeUnpin for ActiveStage
impl UnwindSafe for ActiveStage
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