pub enum ResourceState {
SettingUp,
WaitingForUsers,
CleaningUp,
Cleaned,
CleanupFailed,
CleanupCancelled,
NotNeeded,
}Expand description
Where a resource stands in a run, from its two tasks’ states (decision 275).
Variants§
SettingUp
Its setup hasn’t ended yet.
WaitingForUsers
Its setup succeeded; its cleanup waits for the users.
CleaningUp
Its cleanup is queued, running or waiting to be tried again.
Cleaned
Its cleanup succeeded.
CleanupFailed
Its cleanup failed after its last retry.
CleanupCancelled
Its cleanup was cancelled (schedr tasks cancel): what the setup made may be left.
NotNeeded
Its setup didn’t succeed: there is nothing to clean.
Implementations§
Source§impl ResourceState
impl ResourceState
Sourcepub const fn of(setup: TaskInstanceState, cleanup: TaskInstanceState) -> Self
pub const fn of(setup: TaskInstanceState, cleanup: TaskInstanceState) -> Self
The state of a resource whose setup and cleanup are in these states.
Trait Implementations§
Source§impl Clone for ResourceState
impl Clone for ResourceState
Source§fn clone(&self) -> ResourceState
fn clone(&self) -> ResourceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceState
Source§impl Debug for ResourceState
impl Debug for ResourceState
Source§impl<'de> Deserialize<'de> for ResourceState
impl<'de> Deserialize<'de> for ResourceState
Source§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
impl Eq for ResourceState
Source§impl JsonSchema for ResourceState
impl JsonSchema for ResourceState
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ResourceState
impl PartialEq for ResourceState
Source§impl Serialize for ResourceState
impl Serialize for ResourceState
impl StructuralPartialEq for ResourceState
Auto Trait Implementations§
impl Freeze for ResourceState
impl RefUnwindSafe for ResourceState
impl Send for ResourceState
impl Sync for ResourceState
impl Unpin for ResourceState
impl UnsafeUnpin for ResourceState
impl UnwindSafe for ResourceState
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