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