pub enum BlockSequenceError {
OrderingViolation {
known_id: BlockId,
new_id: BlockId,
known_index: usize,
first_new_index: usize,
},
PositionMismatch {
expected: usize,
actual: u64,
block_id: BlockId,
},
DuplicateBlockId {
block_id: BlockId,
},
TokenExtension(TokenBlockError),
}Expand description
Errors that can occur in block sequence operations.
Variants§
OrderingViolation
A known block_id appeared after an unknown block_id in extend_block_ids.
PositionMismatch
The position embedded in a sequence hash didn’t match the expected position.
DuplicateBlockId
A block_id already exists in one of the collections.
TokenExtension(TokenBlockError)
Error from underlying token block operations.
Trait Implementations§
Source§impl Debug for BlockSequenceError
impl Debug for BlockSequenceError
Source§impl Display for BlockSequenceError
impl Display for BlockSequenceError
Source§impl Error for BlockSequenceError
impl Error for BlockSequenceError
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<TokenBlockError> for BlockSequenceError
impl From<TokenBlockError> for BlockSequenceError
Source§fn from(source: TokenBlockError) -> Self
fn from(source: TokenBlockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockSequenceError
impl RefUnwindSafe for BlockSequenceError
impl Send for BlockSequenceError
impl Sync for BlockSequenceError
impl Unpin for BlockSequenceError
impl UnsafeUnpin for BlockSequenceError
impl UnwindSafe for BlockSequenceError
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