flatland_frame_scheduling_lib

Trait SchedulingLib

Source
pub trait SchedulingLib {
    // Required methods
    fn on_next_frame_begin(
        &self,
        additional_present_credits: u32,
        future_presentation_infos: Vec<PresentationInfo>,
    );
    fn wait_to_update<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = PresentParameters> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn request_present(&self) { ... }
    fn on_frame_presented(
        &self,
        _actual_presentation_time: MonotonicInstant,
        _presented_infos: Vec<PresentedInfo>,
    ) { ... }
}

Required Methods§

Source

fn on_next_frame_begin( &self, additional_present_credits: u32, future_presentation_infos: Vec<PresentationInfo>, )

Source

fn wait_to_update<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = PresentParameters> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn request_present(&self)

Source

fn on_frame_presented( &self, _actual_presentation_time: MonotonicInstant, _presented_infos: Vec<PresentedInfo>, )

Implementors§