Trait PluginResolver

Source
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§

Source

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.

Source

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.

Source

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.

Source

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,

Source

fn set_mode(&self, mode: PluginResolverMode)

Sets the resolve mode.

Source

fn get_mode(&self) -> PluginResolverMode

Returns the resolve mode.

Trait Implementations§

Source§

impl Injectable for dyn PluginResolver + Sync + Send

Implementors§