Trait kvarn::extensions::PresentCall
source · 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§
sourcefn call<'a>(&'a self, present_data: &'a mut PresentData<'a>) -> RetFut<'a, ()>
fn call<'a>(&'a self, present_data: &'a mut PresentData<'a>) -> RetFut<'a, ()>
Arguments
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::SuperUnsafePointer
s. Then, you had to do theunsafe
dereferencing yourself. Only having to dereference one struct was easier.