Enum holochain_types::app::AppStatus [−][src]
pub enum AppStatus {
Running,
Paused(PausedAppReason),
Disabled(DisabledAppReason),
}
Expand description
The status of an installed app.
Variants
The app is enabled and running normally.
Paused(PausedAppReason)
Enabled, but stopped due to some recoverable problem.
The app “hopes” to be Running again as soon as possible.
Holochain may restart the app automatically if it can. It may also be
restarted manually via the StartApp
admin method.
Paused apps will be automatically set to Running when the conductor restarts.
Tuple Fields of Paused
Disabled(DisabledAppReason)
Disabled and stopped, either manually by the user, or automatically due to an unrecoverable error. App must be Enabled before running again, and will not restart automaticaly on conductor reboot.
Tuple Fields of Disabled
Implementations
Does this status correspond to an Enabled state? If false, this indicates a Disabled state.
Does this status correspond to a Running state? If false, this indicates a Stopped state.
Transition a status from one state to another. If None, the transition was not valid, and the status did not change.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AppStatus
impl UnwindSafe for AppStatus
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more