Enum ExecutionFailureCode
#[repr(i32)]pub enum ExecutionFailureCode {
Unspecified = 0,
ArithmeticFault = 1,
ResourceLimit = 2,
UniqueConflict = 3,
}Variants§
Implementations§
§impl ExecutionFailureCode
impl ExecutionFailureCode
pub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of ExecutionFailureCode.
pub fn from_i32(value: i32) -> Option<ExecutionFailureCode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ExecutionFailureCode>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ExecutionFailureCode, or None if value is not a valid variant.
§impl ExecutionFailureCode
impl ExecutionFailureCode
pub 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.
pub fn from_str_name(value: &str) -> Option<ExecutionFailureCode>
pub fn from_str_name(value: &str) -> Option<ExecutionFailureCode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for ExecutionFailureCode
impl Clone for ExecutionFailureCode
§fn clone(&self) -> ExecutionFailureCode
fn clone(&self) -> ExecutionFailureCode
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 ExecutionFailureCode
§impl Debug for ExecutionFailureCode
impl Debug for ExecutionFailureCode
§impl Default for ExecutionFailureCode
impl Default for ExecutionFailureCode
§fn default() -> ExecutionFailureCode
fn default() -> ExecutionFailureCode
Returns the “default value” for a type. Read more
impl Eq for ExecutionFailureCode
§impl Hash for ExecutionFailureCode
impl Hash for ExecutionFailureCode
§impl Ord for ExecutionFailureCode
impl Ord for ExecutionFailureCode
§fn cmp(&self, other: &ExecutionFailureCode) -> Ordering
fn cmp(&self, other: &ExecutionFailureCode) -> Ordering
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
§impl PartialEq for ExecutionFailureCode
impl PartialEq for ExecutionFailureCode
§fn eq(&self, other: &ExecutionFailureCode) -> bool
fn eq(&self, other: &ExecutionFailureCode) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl PartialOrd for ExecutionFailureCode
impl PartialOrd for ExecutionFailureCode
impl StructuralPartialEq for ExecutionFailureCode
§impl TryFrom<i32> for ExecutionFailureCode
impl TryFrom<i32> for ExecutionFailureCode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<ExecutionFailureCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ExecutionFailureCode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ExecutionFailureCode
impl RefUnwindSafe for ExecutionFailureCode
impl Send for ExecutionFailureCode
impl Sync for ExecutionFailureCode
impl Unpin for ExecutionFailureCode
impl UnsafeUnpin for ExecutionFailureCode
impl UnwindSafe for ExecutionFailureCode
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].