Enum asn1_rs::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
sourceimpl Clone for DerConstraint
impl Clone for DerConstraint
sourcefn clone(&self) -> DerConstraint
fn clone(&self) -> DerConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DerConstraint
impl Debug for DerConstraint
sourceimpl Display for DerConstraint
impl Display for DerConstraint
sourceimpl Error for DerConstraint
impl Error for DerConstraint
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<DerConstraint> for DerConstraint
impl PartialEq<DerConstraint> for DerConstraint
impl Copy for DerConstraint
impl StructuralPartialEq for DerConstraint
Auto Trait Implementations
impl RefUnwindSafe for DerConstraint
impl Send for DerConstraint
impl Sync for DerConstraint
impl Unpin for DerConstraint
impl UnwindSafe for DerConstraint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more