Struct astro_run::PluginBuilder
source · pub struct PluginBuilder { /* private fields */ }Implementations§
source§impl PluginBuilder
impl PluginBuilder
pub fn new(name: &'static str) -> Self
pub fn on_state_change<T>(self, on_state_change: T) -> Selfwhere T: Fn(WorkflowStateEvent) + 'static,
pub fn on_log<T>(self, on_log: T) -> Selfwhere T: Fn(WorkflowLog) + 'static,
pub fn build(self) -> AstroRunPlugin
Auto Trait Implementations§
impl !RefUnwindSafe for PluginBuilder
impl !Send for PluginBuilder
impl !Sync for PluginBuilder
impl Unpin for PluginBuilder
impl !UnwindSafe for PluginBuilder
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