pub enum ConsistencyError {
MissingBlock(BlockId),
TooManyBlocks(BlockId),
MissingRecord(u64),
TooManyRecords(u64),
}
Expand description
Errors that can occur when attempting to search for blocks and records within an unrolled bitstream.
Variants§
MissingBlock(BlockId)
We expected a (sub-)block of the given ID, but couldn’t find one.
TooManyBlocks(BlockId)
We expected exactly one (sub-)block of the given ID, but found more than one.
MissingRecord(u64)
We expected a record of the given code, but couldn’t find one.
TooManyRecords(u64)
We expected exactly one record of the given code, but found more than one.
Trait Implementations§
Source§impl Debug for ConsistencyError
impl Debug for ConsistencyError
Source§impl Display for ConsistencyError
impl Display for ConsistencyError
Source§impl Error for ConsistencyError
impl Error for ConsistencyError
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 From<ConsistencyError> for MapError
impl From<ConsistencyError> for MapError
Source§fn from(source: ConsistencyError) -> Self
fn from(source: ConsistencyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConsistencyError
impl RefUnwindSafe for ConsistencyError
impl Send for ConsistencyError
impl Sync for ConsistencyError
impl Unpin for ConsistencyError
impl UnwindSafe for ConsistencyError
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