pub trait Build: Sized {
type Shutdown: Startup;
// Required method
fn try_build<'p>(
self,
config: Config,
place: &'p mut Place<Self::Shutdown>,
) -> Result<Generation<'p, Self::Shutdown>, Error<'p>>;
// Provided method
fn run<'env, S, I, F, R, Report, T>(
self,
config: Config,
plan: S,
input: I,
report: &mut Report,
body: F,
finish: impl for<'cause> FnOnce(Result<R, Cause<'cause, &'cause S::Error>>) -> T,
) -> T
where Self::Shutdown: 'env,
S: Build + 'env,
I: 'env,
F: 'env + for<'life, 'p, 'd> FnOnce(I, Loan<'life, 'p, 'd, S>, &mut Core<'env, 'd, Self::Shutdown, Report>) -> R,
Report: Report<Event = <Arena as Drain>::Reported> { ... }
}Required Associated Types§
Required Methods§
fn try_build<'p>( self, config: Config, place: &'p mut Place<Self::Shutdown>, ) -> Result<Generation<'p, Self::Shutdown>, Error<'p>>
Provided Methods§
fn run<'env, S, I, F, R, Report, T>( self, config: Config, plan: S, input: I, report: &mut Report, body: F, finish: impl for<'cause> FnOnce(Result<R, Cause<'cause, &'cause S::Error>>) -> T, ) -> T
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".