#[non_exhaustive]pub enum DerError {
RequestId {
expected: i32,
got: i32,
},
Complete,
Incomplete,
WrongArray {
id: String,
kind: DERControl,
},
DuplicateId(String),
TooManyControls {
limit: usize,
},
BadDuration(String),
}Expand description
Why a DER report could not be collected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequestId
A part answering another GetDERControl (R04.FR.31).
Complete
A part after the last one (R04.FR.32).
Incomplete
The last part has not arrived.
WrongArray
A curve whose type has its own array (R04.FR.16).
DuplicateId(String)
Two controls with one id.
TooManyControls
More controls than the collector’s limit.
BadDuration(String)
A negative duration, or a start plus duration that cannot be represented.
Trait Implementations§
impl Eq for DerError
Source§impl Error for DerError
Available on crate feature std only.
impl Error for DerError
Available on crate feature
std only.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()
impl StructuralPartialEq for DerError
Auto Trait Implementations§
impl Forget for DerError
impl Freeze for DerError
impl Move for DerError
impl RefUnwindSafe for DerError
impl Send for DerError
impl Sync for DerError
impl Unpin for DerError
impl UnsafeUnpin for DerError
impl UnwindSafe for DerError
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