Skip to main content

Retry

Trait Retry 

Source
pub trait Retry: Sized {
    type Failure;
    type Owner: Close<State = Self>;

    // Required method
    fn recover(self) -> Rejected<Self::Owner, Self::Failure>;
}
Expand description

Returns the exact failure and its live owner before another cleanup attempt.

Required Associated Types§

Source

type Failure

Source

type Owner: Close<State = Self>

Required Methods§

Source

fn recover(self) -> Rejected<Self::Owner, Self::Failure>

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 Retry for Infallible

Source§

type Failure = !

Source§

type Owner = !

Source§

fn recover(self) -> Rejected<Self::Owner, Self::Failure>

Source§

impl<O, E> Retry for Rejected<O, E>
where O: Close<State = Self>,

Source§

type Failure = E

Source§

type Owner = O

Source§

fn recover(self) -> Rejected<O, E>

Implementors§