#[repr(i32)]pub enum TaskReachability {
Unspecified = 0,
NewWorkflows = 1,
ExistingWorkflows = 2,
OpenWorkflows = 3,
ClosedWorkflows = 4,
}Expand description
Specifies which category of tasks may reach a worker on a versioned task queue. Used both in a reachability query and its response. Deprecated.
Variants§
Unspecified = 0
NewWorkflows = 1
There’s a possiblity for a worker to receive new workflow tasks. Workers should not be retired.
ExistingWorkflows = 2
There’s a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers should not be retired. This enum value does not distinguish between open and closed workflows.
OpenWorkflows = 3
There’s a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers should not be retired.
ClosedWorkflows = 4
There’s a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be retired dependending on application requirements. For example, if there’s no need to query closed workflows.
Implementations§
Source§impl TaskReachability
impl TaskReachability
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of TaskReachability.
Sourcepub fn from_i32(value: i32) -> Option<TaskReachability>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<TaskReachability>
Use the TryFrom<i32> implementation instead
Converts an i32 to a TaskReachability, or None if value is not a valid variant.
Source§impl TaskReachability
impl TaskReachability
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 TaskReachability
impl Clone for TaskReachability
Source§fn clone(&self) -> TaskReachability
fn clone(&self) -> TaskReachability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TaskReachability
Source§impl Debug for TaskReachability
impl Debug for TaskReachability
Source§impl Default for TaskReachability
impl Default for TaskReachability
Source§fn default() -> TaskReachability
fn default() -> TaskReachability
impl Eq for TaskReachability
Source§impl From<TaskReachability> for i32
impl From<TaskReachability> for i32
Source§fn from(value: TaskReachability) -> i32
fn from(value: TaskReachability) -> i32
Source§impl Hash for TaskReachability
impl Hash for TaskReachability
Source§impl Ord for TaskReachability
impl Ord for TaskReachability
Source§fn cmp(&self, other: &TaskReachability) -> Ordering
fn cmp(&self, other: &TaskReachability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TaskReachability
impl PartialEq for TaskReachability
Source§fn eq(&self, other: &TaskReachability) -> bool
fn eq(&self, other: &TaskReachability) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TaskReachability
impl PartialOrd for TaskReachability
impl StructuralPartialEq for TaskReachability
Source§impl TryFrom<i32> for TaskReachability
impl TryFrom<i32> for TaskReachability
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<TaskReachability, UnknownEnumValue>
fn try_from(value: i32) -> Result<TaskReachability, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for TaskReachability
impl RefUnwindSafe for TaskReachability
impl Send for TaskReachability
impl Sync for TaskReachability
impl Unpin for TaskReachability
impl UnsafeUnpin for TaskReachability
impl UnwindSafe for TaskReachability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request