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§
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)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".