pub trait PluginResolver:
Send
+ Sync
+ Lifecycle {
// Required methods
fn resolve_until_idle<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop_until_all_stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resolve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PluginTransitionResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn transition_to_fallback_states<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_mode(&self, mode: PluginResolverMode);
fn get_mode(&self) -> PluginResolverMode;
}
Required Methods§
Sourcefn resolve_until_idle<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve_until_idle<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resolves plugins until no more resolve action is possible.
Sourcefn stop_until_all_stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_until_all_stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stops all plugins until all are stopped.
Sourcefn resolve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PluginTransitionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PluginTransitionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs the next resolve action.
fn transition_to_fallback_states<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn set_mode(&self, mode: PluginResolverMode)
fn set_mode(&self, mode: PluginResolverMode)
Sets the resolve mode.
Sourcefn get_mode(&self) -> PluginResolverMode
fn get_mode(&self) -> PluginResolverMode
Returns the resolve mode.