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