Struct ServiceManagerHandle
pub struct ServiceManagerHandle {
pub(crate) cmd_tx: Sender<Command>,
pub(crate) status: StatusHandle,
}Fields§
§cmd_tx: Sender<Command>§status: StatusHandleImplementations§
§impl ServiceManagerHandle
impl ServiceManagerHandle
pub async fn shutdown(&self)
pub async fn shutdown(&self)
Shuts down the service manager and waits for it to finish.
pub async fn reload_services(&self, directories: Vec<PathBuf>)
pub async fn reload_services(&self, directories: Vec<PathBuf>)
Reloads services from the given directories.
pub async fn set_system_dependency(
&self,
system_dependency: SystemDependency,
value: bool,
)
pub async fn set_system_dependency( &self, system_dependency: SystemDependency, value: bool, )
Sets a system dependency to be met or not.
pub async fn set_system_active(&self, active: bool)
pub async fn set_system_active(&self, active: bool)
Sets the system to be active or inactive.
Trait Implementations§
§impl Clone for ServiceManagerHandle
impl Clone for ServiceManagerHandle
§fn clone(&self) -> ServiceManagerHandle
fn clone(&self) -> ServiceManagerHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceManagerHandle
impl RefUnwindSafe for ServiceManagerHandle
impl Send for ServiceManagerHandle
impl Sync for ServiceManagerHandle
impl Unpin for ServiceManagerHandle
impl UnwindSafe for ServiceManagerHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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