#[repr(i32)]pub enum ReservedErrors {
Unspecified = 0,
Unanswered = 1,
}Expand description
ReservedErrors names the assigned protocol-wide errors in the reserved range 0x00 to 0xff (inclusive). No code in this range may be assigned a request specific meaning. Assigned codes must not be repurposed.
Variants§
Unspecified = 0
A failure without a standardized reason. Zero does not indicate success; the presence of an Error in the response indicates failure.
Unanswered = 1
The request’s responder was released without providing an application reply.
Implementations§
Source§impl ReservedErrors
impl ReservedErrors
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 ReservedErrors
impl Clone for ReservedErrors
Source§fn clone(&self) -> ReservedErrors
fn clone(&self) -> ReservedErrors
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 ReservedErrors
Source§impl Debug for ReservedErrors
impl Debug for ReservedErrors
Source§impl Default for ReservedErrors
impl Default for ReservedErrors
Source§fn default() -> ReservedErrors
fn default() -> ReservedErrors
Returns the “default value” for a type. Read more
impl Eq for ReservedErrors
Source§impl From<ReservedErrors> for i32
impl From<ReservedErrors> for i32
Source§fn from(value: ReservedErrors) -> i32
fn from(value: ReservedErrors) -> i32
Converts to this type from the input type.
Source§impl Hash for ReservedErrors
impl Hash for ReservedErrors
Source§impl Ord for ReservedErrors
impl Ord for ReservedErrors
Source§fn cmp(&self, other: &ReservedErrors) -> Ordering
fn cmp(&self, other: &ReservedErrors) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReservedErrors
impl PartialEq for ReservedErrors
Source§impl PartialOrd for ReservedErrors
impl PartialOrd for ReservedErrors
impl StructuralPartialEq for ReservedErrors
Source§impl TryFrom<i32> for ReservedErrors
impl TryFrom<i32> for ReservedErrors
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ReservedErrors, UnknownEnumValue>
fn try_from(value: i32) -> Result<ReservedErrors, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ReservedErrors
impl RefUnwindSafe for ReservedErrors
impl Send for ReservedErrors
impl Sync for ReservedErrors
impl Unpin for ReservedErrors
impl UnsafeUnpin for ReservedErrors
impl UnwindSafe for ReservedErrors
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