pub(crate) struct CallbackPlugin {
pub on_begin_plugins: Vec<(&'static str, Arc<dyn Fn(&Context) + Send + Sync>)>,
pub on_end_plugins: Vec<(&'static str, Arc<dyn Fn(&Context) + Send + Sync>)>,
}Fields§
§on_begin_plugins: Vec<(&'static str, Arc<dyn Fn(&Context) + Send + Sync>)>§on_end_plugins: Vec<(&'static str, Arc<dyn Fn(&Context) + Send + Sync>)>Trait Implementations§
Source§impl Default for CallbackPlugin
impl Default for CallbackPlugin
Source§fn default() -> CallbackPlugin
fn default() -> CallbackPlugin
Returns the “default value” for a type. Read more
Source§impl Plugin for CallbackPlugin
impl Plugin for CallbackPlugin
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Plugin name. Read more
Source§fn on_begin_pass(&mut self, ctx: &Context)
fn on_begin_pass(&mut self, ctx: &Context)
Called at the start of each pass. Read more
Source§fn on_end_pass(&mut self, ctx: &Context)
fn on_end_pass(&mut self, ctx: &Context)
Called at the end of each pass. Read more
Source§fn input_hook(&mut self, input: &mut RawInput)
fn input_hook(&mut self, input: &mut RawInput)
Called just before the input is processed. Read more
Source§fn output_hook(&mut self, output: &mut FullOutput)
fn output_hook(&mut self, output: &mut FullOutput)
Called just before the output is passed to the backend. Read more
Auto Trait Implementations§
impl Freeze for CallbackPlugin
impl !RefUnwindSafe for CallbackPlugin
impl Send for CallbackPlugin
impl Sync for CallbackPlugin
impl Unpin for CallbackPlugin
impl !UnwindSafe for CallbackPlugin
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