Enum protos::sp_common::ResponseCode
source · pub enum ResponseCode {
RESPONSE_CODE_UNSET = 0,
RESPONSE_CODE_OK = 1,
RESPONSE_CODE_BAD_REQUEST = 2,
RESPONSE_CODE_NOT_FOUND = 3,
RESPONSE_CODE_INTERNAL_SERVER_ERROR = 4,
RESPONSE_CODE_GENERIC_ERROR = 5,
}Expand description
Common status codes used in gRPC method responses
Variants§
RESPONSE_CODE_UNSET = 0
RESPONSE_CODE_OK = 1
RESPONSE_CODE_BAD_REQUEST = 2
RESPONSE_CODE_NOT_FOUND = 3
RESPONSE_CODE_INTERNAL_SERVER_ERROR = 4
RESPONSE_CODE_GENERIC_ERROR = 5
Trait Implementations§
source§impl Clone for ResponseCode
impl Clone for ResponseCode
source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
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 moresource§impl Debug for ResponseCode
impl Debug for ResponseCode
source§impl Default for ResponseCode
impl Default for ResponseCode
source§impl Enum for ResponseCode
impl Enum for ResponseCode
source§fn from_i32(value: i32) -> Option<ResponseCode>
fn from_i32(value: i32) -> Option<ResponseCode>
Try to create an enum from
i32 value.
Return None if value is unknown.source§fn from_str(str: &str) -> Option<ResponseCode>
fn from_str(str: &str) -> Option<ResponseCode>
Try to create an enum from
&str value.
Return None if str is unknown.source§const VALUES: &'static [ResponseCode] = _
const VALUES: &'static [ResponseCode] = _
All enum values for enum type.
source§impl EnumFull for ResponseCode
impl EnumFull for ResponseCode
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for ResponseCode
impl Hash for ResponseCode
source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
source§fn eq(&self, other: &ResponseCode) -> bool
fn eq(&self, other: &ResponseCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ResponseCode
impl Eq for ResponseCode
impl StructuralEq for ResponseCode
impl StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnwindSafe for ResponseCode
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