pub struct Plugins { /* private fields */ }
Implementations§
Source§impl Plugins
impl Plugins
pub fn new(client: Arc<ReactiveGraphClient>) -> Self
pub async fn get_all( &self, ) -> Result<Vec<Plugin>, ReactiveGraphClientExecutionError>
pub async fn search( &self, vars: SearchPluginVariables, ) -> Result<Vec<Plugin>, ReactiveGraphClientExecutionError>
Sourcepub async fn get_by_name(
&self,
name: String,
) -> Result<Option<Plugin>, ReactiveGraphClientExecutionError>
pub async fn get_by_name( &self, name: String, ) -> Result<Option<Plugin>, ReactiveGraphClientExecutionError>
Returns the plugin with the given name. If no plugin was found an empty optional will be returned.
Sourcepub async fn get_dependencies(
&self,
name: String,
) -> Result<Option<Vec<Plugin>>, ReactiveGraphClientExecutionError>
pub async fn get_dependencies( &self, name: String, ) -> Result<Option<Vec<Plugin>>, ReactiveGraphClientExecutionError>
Returns the dependencies of the plugin with the given name. If no plugin was found an empty optional will be returned.
Sourcepub async fn get_dependents(
&self,
name: String,
) -> Result<Option<Vec<Plugin>>, ReactiveGraphClientExecutionError>
pub async fn get_dependents( &self, name: String, ) -> Result<Option<Vec<Plugin>>, ReactiveGraphClientExecutionError>
Returns the dependents of the plugin with the given name. If no plugin was found an empty optional will be returned.
Sourcepub async fn get_unsatisfied_dependencies(
&self,
name: String,
) -> Result<Option<Vec<Plugin>>, ReactiveGraphClientExecutionError>
pub async fn get_unsatisfied_dependencies( &self, name: String, ) -> Result<Option<Vec<Plugin>>, ReactiveGraphClientExecutionError>
Returns the unsatisfied dependencies of the plugin with the given name. If no plugin was found an empty optional will be returned.
pub async fn start( &self, name: String, ) -> Result<Plugin, ReactiveGraphClientExecutionError>
pub async fn stop( &self, name: String, ) -> Result<Plugin, ReactiveGraphClientExecutionError>
pub async fn restart( &self, name: String, ) -> Result<Plugin, ReactiveGraphClientExecutionError>
pub async fn uninstall( &self, name: String, ) -> Result<bool, ReactiveGraphClientExecutionError>
Auto Trait Implementations§
impl Freeze for Plugins
impl !RefUnwindSafe for Plugins
impl Send for Plugins
impl Sync for Plugins
impl Unpin for Plugins
impl !UnwindSafe for Plugins
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