Enum sandwich::pb::SystemError
pub enum SystemError {
SYSTEMERROR_MEMORY,
SYSTEMERROR_INTEGER_OVERFLOW,
SYSTEMERROR_BACKEND,
}
Variants§
Trait Implementations§
§impl Clone for SystemError
impl Clone for SystemError
§fn clone(&self) -> SystemError
fn clone(&self) -> SystemError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SystemError
impl Debug for SystemError
§impl Default for SystemError
impl Default for SystemError
§fn default() -> SystemError
fn default() -> SystemError
Returns the “default value” for a type. Read more
§impl Enum for SystemError
impl Enum for SystemError
§fn from_i32(value: i32) -> Option<SystemError>
fn from_i32(value: i32) -> Option<SystemError>
Try to create an enum from
i32
value.
Return None
if value is unknown.§fn from_str(str: &str) -> Option<SystemError>
fn from_str(str: &str) -> Option<SystemError>
Try to create an enum from
&str
value.
Return None
if str is unknown.§const VALUES: &'static [SystemError] = _
const VALUES: &'static [SystemError] = _
All enum values for enum type.
§impl EnumFull for SystemError
impl EnumFull for SystemError
§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl From<SystemError> for ErrorCode
impl From<SystemError> for ErrorCode
Implements [From<sandwich_proto::ErrorEnum>]
for ErrorCode
.
source§fn from(v: SystemError) -> Self
fn from(v: SystemError) -> Self
Converts to this type from the input type.
source§impl From<SystemError> for ProtoBasedErrorCode
impl From<SystemError> for ProtoBasedErrorCode
Implements [From<sandwich_proto::ErrorEnum>]
for ProtoBasedErrorCode
.
source§fn from(v: SystemError) -> Self
fn from(v: SystemError) -> Self
Converts to this type from the input type.
§impl Hash for SystemError
impl Hash for SystemError
source§impl PartialEq<ProtoBasedErrorCode> for SystemError
impl PartialEq<ProtoBasedErrorCode> for SystemError
Implements comparison operator between ProtoBasedErrorCode
and the current error enum.
source§fn eq(&self, other: &ProtoBasedErrorCode) -> bool
fn eq(&self, other: &ProtoBasedErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SystemError> for ProtoBasedErrorCode
impl PartialEq<SystemError> for ProtoBasedErrorCode
Implements comparison operator between ProtoBasedErrorCode
and the current error enum.
source§fn eq(&self, other: &SystemError) -> bool
fn eq(&self, other: &SystemError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<SystemError> for SystemError
impl PartialEq<SystemError> for SystemError
§fn eq(&self, other: &SystemError) -> bool
fn eq(&self, other: &SystemError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SystemError
impl Eq for SystemError
impl StructuralEq for SystemError
impl StructuralPartialEq for SystemError
Auto Trait Implementations§
impl RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnwindSafe for SystemError
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