Skip to main content

Close

Trait Close 

Source
pub trait Close: Sized {
    type State: Retry;

    // Required method
    fn try_close(self) -> Result<(), Self::State>;
}
Expand description

Consumes an owner, retaining failed cleanup for retry.

Required Associated Types§

Required Methods§

Source

fn try_close(self) -> Result<(), Self::State>

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

Source§

type State = !

Source§

fn try_close(self) -> Result<(), Self::State>

Implementors§