Skip to main content

TeardownOutput

Trait TeardownOutput 

Source
pub trait TeardownOutput: Send + 'static {
    // Required method
    fn failure(self) -> Option<String>;
}
Expand description

What a teardown future may return: () or a Result<(), E> whose error is logged.

Required Methods§

Source

fn failure(self) -> Option<String>

The failure message, if the teardown failed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TeardownOutput for ()

Source§

impl<E: Display + Send + 'static> TeardownOutput for Result<(), E>

Implementors§