pub enum LogicalBlockAssignmentError<T: BlockMetadata> {
DuplicateBlockId {
block_id: BlockId,
blocks: Vec<MutableBlock<T>>,
},
DuplicateAssignedBlockId {
block_id: BlockId,
blocks: Vec<ImmutableBlock<T>>,
},
SequenceHashMismatch {
position: usize,
expected: SequenceHash,
actual: SequenceHash,
blocks: Vec<ImmutableBlock<T>>,
},
}Expand description
Error type for LogicalBlockAssignments operations.
Variants§
DuplicateBlockId
A mutable block_id in the input already exists in one of the three collections.
Fields
§
blocks: Vec<MutableBlock<T>>All input blocks returned for recovery (no leaks).
DuplicateAssignedBlockId
An immutable block_id in the input already exists in one of the three collections.
Fields
§
blocks: Vec<ImmutableBlock<T>>All input blocks returned for recovery (no leaks).
SequenceHashMismatch
A matched block’s sequence hash does not match the expected sequence hash.
Fields
§
expected: SequenceHashThe expected hash from the token sequence.
§
actual: SequenceHashThe actual hash from the matched block.
§
blocks: Vec<ImmutableBlock<T>>All input blocks returned for recovery (no leaks).
Trait Implementations§
Source§impl<T: Debug + BlockMetadata> Debug for LogicalBlockAssignmentError<T>
impl<T: Debug + BlockMetadata> Debug for LogicalBlockAssignmentError<T>
Source§impl<T: BlockMetadata> Display for LogicalBlockAssignmentError<T>
impl<T: BlockMetadata> Display for LogicalBlockAssignmentError<T>
Source§impl<T: BlockMetadata> Error for LogicalBlockAssignmentError<T>
impl<T: BlockMetadata> Error for LogicalBlockAssignmentError<T>
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()
Auto Trait Implementations§
impl<T> !RefUnwindSafe for LogicalBlockAssignmentError<T>
impl<T> !UnwindSafe for LogicalBlockAssignmentError<T>
impl<T> Freeze for LogicalBlockAssignmentError<T>
impl<T> Send for LogicalBlockAssignmentError<T>
impl<T> Sync for LogicalBlockAssignmentError<T>
impl<T> Unpin for LogicalBlockAssignmentError<T>where
T: Unpin,
impl<T> UnsafeUnpin for LogicalBlockAssignmentError<T>
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