Skip to main content

ShutdownNode

Trait ShutdownNode 

Source
pub trait ShutdownNode {
    // Required methods
    fn get_shutdown_coordinator(&self) -> RefMut<'_, NodeShutdownCoordinator>;
    fn name(&self) -> &str;
    fn finish_shutdown<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn schedule_post_shutdown(&self, intent: ShutdownIntent);
    fn set_should_destroy_driver_component(&self, val: bool);
}

Required Methods§

Source

fn get_shutdown_coordinator(&self) -> RefMut<'_, NodeShutdownCoordinator>

Source

fn name(&self) -> &str

Source

fn finish_shutdown<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn schedule_post_shutdown(&self, intent: ShutdownIntent)

Source

fn set_should_destroy_driver_component(&self, val: bool)

Implementors§