#[repr(i32)]pub enum ProtoActivityErrorKind {
Unspecified = 0,
Retryable = 1,
Terminal = 2,
}Expand description
Proto representation of ActivityErrorKind. Zero is invalid on decode.
Variants§
Unspecified = 0
Missing/invalid kind.
Retryable = 1
Activity failure may be retried by the engine.
Terminal = 2
Activity failure is terminal.
Implementations§
Source§impl ProtoActivityErrorKind
impl ProtoActivityErrorKind
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ProtoActivityErrorKind.
Sourcepub fn from_i32(value: i32) -> Option<ProtoActivityErrorKind>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtoActivityErrorKind>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ProtoActivityErrorKind, or None if value is not a valid variant.
Trait Implementations§
Source§impl Clone for ProtoActivityErrorKind
impl Clone for ProtoActivityErrorKind
Source§fn clone(&self) -> ProtoActivityErrorKind
fn clone(&self) -> ProtoActivityErrorKind
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 ProtoActivityErrorKind
Source§impl Debug for ProtoActivityErrorKind
impl Debug for ProtoActivityErrorKind
Source§impl Default for ProtoActivityErrorKind
impl Default for ProtoActivityErrorKind
Source§fn default() -> ProtoActivityErrorKind
fn default() -> ProtoActivityErrorKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtoActivityErrorKind
impl<'de> Deserialize<'de> for ProtoActivityErrorKind
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 ProtoActivityErrorKind
Source§impl From<ActivityErrorKind> for ProtoActivityErrorKind
impl From<ActivityErrorKind> for ProtoActivityErrorKind
Source§fn from(value: ActivityErrorKind) -> Self
fn from(value: ActivityErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<ProtoActivityErrorKind> for i32
impl From<ProtoActivityErrorKind> for i32
Source§fn from(value: ProtoActivityErrorKind) -> i32
fn from(value: ProtoActivityErrorKind) -> i32
Converts to this type from the input type.
Source§impl Hash for ProtoActivityErrorKind
impl Hash for ProtoActivityErrorKind
Source§impl PartialEq for ProtoActivityErrorKind
impl PartialEq for ProtoActivityErrorKind
Source§fn eq(&self, other: &ProtoActivityErrorKind) -> bool
fn eq(&self, other: &ProtoActivityErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProtoActivityErrorKind
impl Serialize for ProtoActivityErrorKind
impl StructuralPartialEq for ProtoActivityErrorKind
Source§impl TryFrom<i32> for ProtoActivityErrorKind
impl TryFrom<i32> for ProtoActivityErrorKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProtoActivityErrorKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoActivityErrorKind, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProtoActivityErrorKind
impl RefUnwindSafe for ProtoActivityErrorKind
impl Send for ProtoActivityErrorKind
impl Sync for ProtoActivityErrorKind
impl Unpin for ProtoActivityErrorKind
impl UnsafeUnpin for ProtoActivityErrorKind
impl UnwindSafe for ProtoActivityErrorKind
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