#[repr(i32)]pub enum ExecutionState {
Unspecified = 0,
Running = 1,
Awaiting = 2,
Resolved = 3,
}Expand description
ExecutionState is where a scheduled task stands for its host.
Variants§
Unspecified = 0
Never sent, an unset state
Running = 1
The app still runs
Awaiting = 2
The app ended and the owner reviews its report
Resolved = 3
The review closed, so exec_result answers
Implementations§
Source§impl ExecutionState
impl ExecutionState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ExecutionState
impl Clone for ExecutionState
impl Copy for ExecutionState
Source§impl Debug for ExecutionState
impl Debug for ExecutionState
Source§impl Default for ExecutionState
impl Default for ExecutionState
Source§fn default() -> ExecutionState
fn default() -> ExecutionState
Returns the “default value” for a type. Read more
impl Eq for ExecutionState
Source§impl From<ExecutionState> for i32
impl From<ExecutionState> for i32
Source§fn from(value: ExecutionState) -> i32
fn from(value: ExecutionState) -> i32
Converts to this type from the input type.
Source§impl Hash for ExecutionState
impl Hash for ExecutionState
Source§impl Ord for ExecutionState
impl Ord for ExecutionState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExecutionState
impl PartialEq for ExecutionState
Source§impl PartialOrd for ExecutionState
impl PartialOrd for ExecutionState
impl StructuralPartialEq for ExecutionState
Source§impl TryFrom<i32> for ExecutionState
impl TryFrom<i32> for ExecutionState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ExecutionState, UnknownEnumValue>
fn try_from(value: i32) -> Result<ExecutionState, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ExecutionState
impl RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnsafeUnpin for ExecutionState
impl UnwindSafe for ExecutionState
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