Struct rust_default::StatelessCLIPlugin
source · pub struct StatelessCLIPlugin;Trait Implementations§
source§impl<S: ExecutorGlobalState> Plugin<S> for StatelessCLIPlugin
impl<S: ExecutorGlobalState> Plugin<S> for StatelessCLIPlugin
source§fn desctiption(&self) -> &str
fn desctiption(&self) -> &str
Return a descriptionn of the Plugin. It should contain a list of the registered and activated Executors
source§async fn run(self, o: OrchestratorReference<S>, should_stop: Arc<Notify>)
async fn run(self, o: OrchestratorReference<S>, should_stop: Arc<Notify>)
Function called when the Plugin is runned (at the end of the init phase).
it takes an OrchestratorReference, which permit almost complete control over the orchestrator, and a shared Notify.
This notify should get called when a Plugin request an orchestrator shutdown.
source§async fn on_add<'a>(
&'a mut self,
_o: &'a mut Orchestrator<S>,
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
async fn on_add<'a>( &'a mut self, _o: &'a mut Orchestrator<S>, ) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
When the plugin gets added to the Orchestrator, this function gets called.
It gives complete control on the unrunned executor.
It should be used to register/activate executor, add other Plugins, add Exercise (discouraged)…
Auto Trait Implementations§
impl Freeze for StatelessCLIPlugin
impl RefUnwindSafe for StatelessCLIPlugin
impl Send for StatelessCLIPlugin
impl Sync for StatelessCLIPlugin
impl Unpin for StatelessCLIPlugin
impl UnwindSafe for StatelessCLIPlugin
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