Skip to main content

ResultExt

Trait ResultExt 

Source
pub trait ResultExt<T, E>: Sized {
    // Required method
    fn finish_phase(self, owner: impl Complete) -> Result<T, E>
       where E: AsStopReason;
}
Expand description

The explicit boundary where a normal Rust result completes its phase owner.

Required Methods§

Source

fn finish_phase(self, owner: impl Complete) -> Result<T, E>
where E: AsStopReason,

Record completion and return this result unchanged. This is not invoked by ?, map, or Drop automatically.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E> ResultExt<T, E> for Result<T, E>

Source§

fn finish_phase(self, owner: impl Complete) -> Result<T, E>
where E: AsStopReason,

Implementors§