pub struct PluginResolverImpl {
pub mode: RwLock<PluginResolverMode>,
/* private fields */
}
Fields§
§mode: RwLock<PluginResolverMode>
The resolver can be in three modes: Starting, Neutral and Stopping.
Trait Implementations§
Source§impl Component for PluginResolverImpl
impl Component for PluginResolverImpl
Source§impl ComponentDowncast<PluginResolverImpl> for PluginResolverImpl
impl ComponentDowncast<PluginResolverImpl> for PluginResolverImpl
Source§impl ComponentDowncast<PluginResolverImpl> for dyn PluginResolver + Sync + Send
impl ComponentDowncast<PluginResolverImpl> for dyn PluginResolver + Sync + Send
Source§impl Lifecycle for PluginResolverImpl
impl Lifecycle for PluginResolverImpl
Source§fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called at initialization
Source§fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called for shutdown
Source§impl PluginResolver for PluginResolverImpl
impl PluginResolver for PluginResolverImpl
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,
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,
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,
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,
impl Injectable for PluginResolverImpl
Auto Trait Implementations§
impl !Freeze for PluginResolverImpl
impl !RefUnwindSafe for PluginResolverImpl
impl Send for PluginResolverImpl
impl Sync for PluginResolverImpl
impl Unpin for PluginResolverImpl
impl !UnwindSafe for PluginResolverImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more