Skip to main content

IntoOutcome

Trait IntoOutcome 

Source
pub trait IntoOutcome<T, E> {
    // Required method
    fn into_outcome(self) -> Outcome<T, E>;
}
Expand description

Extension trait for converting HTTP results to asupersync Outcome.

This bridges the HTTP error model with asupersync’s 4-valued outcome (Ok, Err, Cancelled, Panicked).

Required Methods§

Source

fn into_outcome(self) -> Outcome<T, E>

Converts this result into an asupersync Outcome.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T, E> IntoOutcome<T, E> for Result<T, CancelledError>
where E: Default,

Source§

fn into_outcome(self) -> Outcome<T, E>

Source§

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

Source§

fn into_outcome(self) -> Outcome<T, E>

Implementors§