Skip to main content

Plan

Trait Plan 

Source
pub trait Plan: Plan + Default {
    // Required methods
    fn prepare<'d, D: App<'d, ParkPlan = Self>>(
        &mut self,
        app: Pin<&D>,
    ) -> Option<Count>;
    unsafe fn run<'app, 'driver, 'turn, 'd, D>(
        &mut self,
        app: Pin<&'app mut D>,
        turn: Turn<'turn, 'd>,
        driver: &'driver mut Lifecycle<'d, impl Report>,
    )
       where D: App<'d, ParkPlan = Self>,
             'd: 'driver + 'turn;
    unsafe fn resume<'d, D: App<'d, ParkPlan = Self>>(
        app: Pin<&D>,
        prior: &Flat,
    ) -> Self;
}

Required Methods§

Source

fn prepare<'d, D: App<'d, ParkPlan = Self>>( &mut self, app: Pin<&D>, ) -> Option<Count>

Source

unsafe fn run<'app, 'driver, 'turn, 'd, D>( &mut self, app: Pin<&'app mut D>, turn: Turn<'turn, 'd>, driver: &'driver mut Lifecycle<'d, impl Report>, )
where D: App<'d, ParkPlan = Self>, 'd: 'driver + 'turn,

§Safety

Run the same admitted pinned root with its unchanged census and turn.

Source

unsafe fn resume<'d, D: App<'d, ParkPlan = Self>>( app: Pin<&D>, prior: &Flat, ) -> Self

§Safety

Resume the unchanged head after its joined root has finished natively. An unadmitted joined root must finish without running this plan.

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 Plan for ()

Source§

fn prepare<'d, D: App<'d, ParkPlan = Self>>( &mut self, app: Pin<&D>, ) -> Option<Count>

Source§

unsafe fn run<'app, 'driver, 'turn, 'd, D>( &mut self, app: Pin<&'app mut D>, turn: Turn<'turn, 'd>, driver: &'driver mut Lifecycle<'d, impl Report>, )
where D: App<'d, ParkPlan = Self>, 'd: 'driver + 'turn,

Source§

unsafe fn resume<'d, D: App<'d, ParkPlan = Self>>(_: Pin<&D>, _: &Flat) -> Self

Implementors§