#[non_exhaustive]pub enum PendingActivityState {
Unspecified,
Scheduled,
Started,
CancelRequested,
Paused,
PauseRequested,
Unknown,
}Expand description
Detailed state of an activity with ActivityExecutionStatus::Running.
See ActivityExecutionDescription::run_state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
This variant indicates the server did not specify a state.
Scheduled
Activity is scheduled for execution but not yet running on a worker.
Started
Activity is running on a worker.
CancelRequested
Activity has been requested to cancel.
Paused
Activity is paused on the server, and is not running on a worker.
PauseRequested
Activity is currently running on a worker, but paused on the server.
Unknown
This variant indicates the server used a value not known by this version of the SDK.
Trait Implementations§
Source§impl Clone for PendingActivityState
impl Clone for PendingActivityState
Source§fn clone(&self) -> PendingActivityState
fn clone(&self) -> PendingActivityState
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 PendingActivityState
Source§impl Debug for PendingActivityState
impl Debug for PendingActivityState
Source§impl Default for PendingActivityState
impl Default for PendingActivityState
Source§fn default() -> PendingActivityState
fn default() -> PendingActivityState
Returns the “default value” for a type. Read more
impl Eq for PendingActivityState
Source§impl From<PendingActivityState> for PendingActivityState
impl From<PendingActivityState> for PendingActivityState
Source§fn from(value: ProtoPendingActivityState) -> Self
fn from(value: ProtoPendingActivityState) -> Self
Converts to this type from the input type.
Source§impl Hash for PendingActivityState
impl Hash for PendingActivityState
Source§impl PartialEq for PendingActivityState
impl PartialEq for PendingActivityState
impl StructuralPartialEq for PendingActivityState
Auto Trait Implementations§
impl Freeze for PendingActivityState
impl RefUnwindSafe for PendingActivityState
impl Send for PendingActivityState
impl Sync for PendingActivityState
impl Unpin for PendingActivityState
impl UnsafeUnpin for PendingActivityState
impl UnwindSafe for PendingActivityState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request