struct Plugins {
pub on_begin_frame: Vec<NamedContextCallback>,
pub on_end_frame: Vec<NamedContextCallback>,
}
Expand description
Callbacks that users can register
Fields§
§on_begin_frame: Vec<NamedContextCallback>
§on_end_frame: Vec<NamedContextCallback>
Implementations§
source§impl Plugins
impl Plugins
fn call(ctx: &Context, _cb_name: &str, callbacks: &[NamedContextCallback])
fn on_begin_frame(&self, ctx: &Context)
fn on_end_frame(&self, ctx: &Context)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugins
impl !RefUnwindSafe for Plugins
impl Send for Plugins
impl Sync for Plugins
impl Unpin for Plugins
impl !UnwindSafe for Plugins
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more