#[non_exhaustive]pub enum BatchError {
DuplicateDeclaration(BlockId),
#[non_exhaustive] InvalidIndex {
index: usize,
completed: usize,
total: usize,
},
#[non_exhaustive] MismatchedCall {
expected: BlockId,
actual: BlockId,
},
DuplicateResultBlockId(BlockId),
InvalidPartition(String),
#[non_exhaustive] Incomplete {
completed: usize,
total: usize,
},
}Expand description
Invalid batch construction, completion, or partition state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateDeclaration(BlockId)
A declaration appears more than once in a batch.
#[non_exhaustive]InvalidIndex
The requested absolute index is not in the pending suffix.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]MismatchedCall
A result references a different declaration than its entry.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
DuplicateResultBlockId(BlockId)
A result’s own block identity collides within the batch.
InvalidPartition(String)
The completed prefix and pending suffix disagree with entry contents.
#[non_exhaustive]Incomplete
Not all entries have results.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
Source§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
Source§impl Error for BatchError
impl Error for BatchError
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 Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnsafeUnpin for BatchError
impl UnwindSafe for BatchError
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