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.

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§