Enum der_parser::error::DerConstraint
source · pub enum DerConstraint {
IndefiniteLength,
Constructed,
NotConstructed,
MissingTimeZone,
MissingSeconds,
UnusedBitsNotZero,
InvalidBoolean,
IntegerEmpty,
IntegerLeadingZeroes,
IntegerLeadingFF,
}
Expand description
Error types for DER constraints
Variants§
IndefiniteLength
Indefinite length not allowed
Constructed
Object must not be constructed
NotConstructed
Object must be constructed
MissingTimeZone
DateTime object is missing timezone
MissingSeconds
DateTime object is missing seconds
UnusedBitsNotZero
Bitstring unused bits must be set to zero
InvalidBoolean
Boolean value must be 0x00 of 0xff
IntegerEmpty
Integer must not be empty
IntegerLeadingZeroes
Leading zeroes in Integer encoding
IntegerLeadingFF
Leading 0xff in negative Integer encoding
Trait Implementations§
source§impl Clone for DerConstraint
impl Clone for DerConstraint
source§fn clone(&self) -> DerConstraint
fn clone(&self) -> DerConstraint
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 DerConstraint
impl Debug for DerConstraint
source§impl Display for DerConstraint
impl Display for DerConstraint
source§impl Error for DerConstraint
impl Error for DerConstraint
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<DerConstraint> for DerConstraint
impl PartialEq<DerConstraint> for DerConstraint
source§fn eq(&self, other: &DerConstraint) -> bool
fn eq(&self, other: &DerConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.