Skip to main content

Build

Trait Build 

Source
pub trait Build<P>: Sized {
    type Context;
    type Cleanup: Cleanup<P>;

    // Required methods
    fn close(self, context: Self::Context) -> Result<P, Self::Cleanup>;
    fn into_result(self) -> Result<P, Self::Cleanup>;
}
Expand description

An unbound construction result can acquire its payload owner exactly once.

Required Associated Types§

Required Methods§

Source

fn close(self, context: Self::Context) -> Result<P, Self::Cleanup>

Source

fn into_result(self) -> Result<P, Self::Cleanup>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§