Struct ServiceWithState
pub(crate) struct ServiceWithState {
pub definition: ServiceDefinition,
pub pending_restart: bool,
pub in_desired_state: bool,
}Fields§
§definition: ServiceDefinition§pending_restart: boolService has a pending restart due to a config change.
in_desired_state: boolService is in the desired state (running or not running).
Implementations§
§impl ServiceWithState
impl ServiceWithState
pub(crate) fn new(service: ServiceDefinition) -> Self
pub(crate) fn update_from_definition(&mut self, definition: ServiceDefinition)
pub(crate) fn update_from_definition(&mut self, definition: ServiceDefinition)
Updates a service with a new service definition.
The id of a service cannot be changed this way.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServiceWithState
impl RefUnwindSafe for ServiceWithState
impl Send for ServiceWithState
impl Sync for ServiceWithState
impl Unpin for ServiceWithState
impl UnwindSafe for ServiceWithState
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> 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