Enum sbat::RevocationSectionError
source · 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 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 RevocationSectionError
impl Debug for RevocationSectionError
source§impl Display for RevocationSectionError
impl Display for RevocationSectionError
source§impl Error for RevocationSectionError
Available on crate feature std only.
impl Error for RevocationSectionError
Available on crate feature
std only.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 for RevocationSectionError
impl PartialEq for RevocationSectionError
source§fn eq(&self, other: &RevocationSectionError) -> bool
fn eq(&self, other: &RevocationSectionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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