pub struct PassiveManagedService { /* private fields */ }Expand description
Managed adapter for a passive Runtime resource with no owned worker.
Implementations§
Source§impl PassiveManagedService
impl PassiveManagedService
Sourcepub fn new(descriptor: ServiceDescriptor) -> Self
pub fn new(descriptor: ServiceDescriptor) -> Self
Creates a passive service whose start transition produces Ready.
Trait Implementations§
Source§impl ManagedService for PassiveManagedService
impl ManagedService for PassiveManagedService
Source§fn descriptor(&self) -> &ServiceDescriptor
fn descriptor(&self) -> &ServiceDescriptor
Returns immutable identity, dependencies, resource, and policy.
Source§fn start(&self) -> SupervisorResult<()>
fn start(&self) -> SupervisorResult<()>
Starts the service and its bounded resources.
Source§fn stop(&self, _timeout: Duration) -> SupervisorResult<()>
fn stop(&self, _timeout: Duration) -> SupervisorResult<()>
Requests cooperative shutdown inside
timeout.Source§fn health(&self) -> ServiceHealth
fn health(&self) -> ServiceHealth
Returns current service health.
Source§fn runtime_state(&self) -> ServiceRuntimeState
fn runtime_state(&self) -> ServiceRuntimeState
Returns the concrete service execution state.
Auto Trait Implementations§
impl !Freeze for PassiveManagedService
impl RefUnwindSafe for PassiveManagedService
impl Send for PassiveManagedService
impl Sync for PassiveManagedService
impl Unpin for PassiveManagedService
impl UnsafeUnpin for PassiveManagedService
impl UnwindSafe for PassiveManagedService
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