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)>
Returns 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 for DerConstraint
impl PartialEq for DerConstraint
impl Copy for DerConstraint
impl Eq for DerConstraint
impl StructuralPartialEq for DerConstraint
Auto Trait Implementations§
impl Freeze for DerConstraint
impl RefUnwindSafe for DerConstraint
impl Send for DerConstraint
impl Sync for DerConstraint
impl Unpin for DerConstraint
impl UnwindSafe for DerConstraint
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)