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