pub enum ErrorCode {
ERROR_CODE_UNKNOWN = 0,
INVALID_SIGNATURE = 1,
INVALID_PUBLIC_KEY = 2,
INVALID_PRIVATE_KEY = 3,
SIGNATURE_VERIFICATION_FAILURE = 4,
INVALID_CONTEXT_LENGTH = 5,
INVALID_BATCH_MESSAGE = 6,
ARRAYS_NOT_EQUAL_LENGTH = 7,
BATCH_VERIFICATION_FAILURE = 8,
NO_ERROR = 418,
}
Variants§
ERROR_CODE_UNKNOWN = 0
INVALID_SIGNATURE = 1
INVALID_PUBLIC_KEY = 2
INVALID_PRIVATE_KEY = 3
SIGNATURE_VERIFICATION_FAILURE = 4
INVALID_CONTEXT_LENGTH = 5
INVALID_BATCH_MESSAGE = 6
ARRAYS_NOT_EQUAL_LENGTH = 7
BATCH_VERIFICATION_FAILURE = 8
NO_ERROR = 418
Trait Implementations§
Source§impl ProtobufEnum for ErrorCode
impl ProtobufEnum for ErrorCode
Source§fn from_i32(value: i32) -> Option<ErrorCode>
fn from_i32(value: i32) -> Option<ErrorCode>
Try to create an enum from
i32
value.
Return None
if value is unknown.Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§impl ProtobufValue for ErrorCode
impl ProtobufValue for ErrorCode
Source§fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_ref(&self) -> ProtobufValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ProtobufValueRef<'static>
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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