pub trait PresentCall: Send + Sync {
    fn call<'a>(
        &'a self,
        present_data: &'a mut PresentData<'a>
    ) -> RetFut<'a, ()>; }
Expand description

Implement this to pass your extension to Extensions::add_present_file or Extensions::add_present_internal.

Required Methods§


PresentData contains all the references to the data needed.

The use of a separate struct for all the references is a product of the previous design, before the macros and utils::SuperUnsafePointers. Then, you had to do the unsafe dereferencing yourself. Only having to dereference one struct was easier.