#[repr(i32)]pub enum CallFailureCode {
Show 17 variants
Unspecified = 0,
Cancelled = 1,
Unknown = 2,
InvalidArgument = 3,
DeadlineExceeded = 4,
NotFound = 5,
AlreadyExists = 6,
PermissionDenied = 7,
ResourceExhausted = 8,
FailedPrecondition = 9,
Aborted = 10,
OutOfRange = 11,
Unimplemented = 12,
Internal = 13,
Unavailable = 14,
DataLoss = 15,
Unauthenticated = 16,
}Expand description
Stable call outcome vocabulary independent of QUIC or any other concrete transport implementation.
Variants§
Unspecified = 0
Cancelled = 1
Unknown = 2
InvalidArgument = 3
DeadlineExceeded = 4
NotFound = 5
AlreadyExists = 6
PermissionDenied = 7
ResourceExhausted = 8
FailedPrecondition = 9
Aborted = 10
OutOfRange = 11
Unimplemented = 12
Internal = 13
DataLoss = 15
Unauthenticated = 16
Implementations§
Source§impl CallFailureCode
impl CallFailureCode
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 CallFailureCode
impl Clone for CallFailureCode
Source§fn clone(&self) -> CallFailureCode
fn clone(&self) -> CallFailureCode
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 CallFailureCode
Source§impl Debug for CallFailureCode
impl Debug for CallFailureCode
Source§impl Default for CallFailureCode
impl Default for CallFailureCode
Source§fn default() -> CallFailureCode
fn default() -> CallFailureCode
Returns the “default value” for a type. Read more
impl Eq for CallFailureCode
Source§impl From<CallFailureCode> for i32
impl From<CallFailureCode> for i32
Source§fn from(value: CallFailureCode) -> i32
fn from(value: CallFailureCode) -> i32
Converts to this type from the input type.
Source§impl Hash for CallFailureCode
impl Hash for CallFailureCode
Source§impl Ord for CallFailureCode
impl Ord for CallFailureCode
Source§fn cmp(&self, other: &CallFailureCode) -> Ordering
fn cmp(&self, other: &CallFailureCode) -> 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
Source§impl PartialEq for CallFailureCode
impl PartialEq for CallFailureCode
Source§impl PartialOrd for CallFailureCode
impl PartialOrd for CallFailureCode
impl StructuralPartialEq for CallFailureCode
Source§impl TryFrom<i32> for CallFailureCode
impl TryFrom<i32> for CallFailureCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CallFailureCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<CallFailureCode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CallFailureCode
impl RefUnwindSafe for CallFailureCode
impl Send for CallFailureCode
impl Sync for CallFailureCode
impl Unpin for CallFailureCode
impl UnsafeUnpin for CallFailureCode
impl UnwindSafe for CallFailureCode
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