pub enum RevocationSectionError {
MissingVersion,
InvalidVersion(u32),
MissingHeader,
InvalidPreviousOffset(u32),
InvalidLatestOffset(u32),
MissingPreviousNull,
MissingLatestNull,
}Expand description
Error returned by RevocationSection::parse.
Variants§
MissingVersion
The section is not big enough to contain the version field.
InvalidVersion(u32)
The section’s version is not 0.
MissingHeader
The section is not big enough to contain the payload header.
InvalidPreviousOffset(u32)
The offset of the previous revocation data is invalid.
InvalidLatestOffset(u32)
The offset of the latest revocation data is invalid.
MissingPreviousNull
The previous revocation data is not null-terminated.
MissingLatestNull
The latest revocation data is not null-terminated.
Trait Implementations§
Source§impl Clone for RevocationSectionError
impl Clone for RevocationSectionError
Source§fn clone(&self) -> RevocationSectionError
fn clone(&self) -> RevocationSectionError
Returns a duplicate 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 RevocationSectionError
impl Debug for RevocationSectionError
Source§impl Display for RevocationSectionError
impl Display for RevocationSectionError
Source§impl Error for RevocationSectionError
impl Error for RevocationSectionError
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 RevocationSectionError
impl PartialEq for RevocationSectionError
impl Copy for RevocationSectionError
impl Eq for RevocationSectionError
impl StructuralPartialEq for RevocationSectionError
Auto Trait Implementations§
impl Freeze for RevocationSectionError
impl RefUnwindSafe for RevocationSectionError
impl Send for RevocationSectionError
impl Sync for RevocationSectionError
impl Unpin for RevocationSectionError
impl UnwindSafe for RevocationSectionError
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