mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
block_import: switch to Box<dyn Any> for intermediates representation (#4809)
* block_import: switch to Box<dyn Any> for intermediates representation * Use Cow and return Error instead of Option * Remove unused error * Distinguish NoIntermediate/InvalidIntermediate
This commit is contained in:
@@ -31,6 +31,12 @@ pub enum Error {
|
||||
/// I/O terminated unexpectedly
|
||||
#[display(fmt="I/O terminated unexpectedly.")]
|
||||
IoTerminated,
|
||||
/// Intermediate missing.
|
||||
#[display(fmt="Missing intermediate.")]
|
||||
NoIntermediate,
|
||||
/// Intermediate is of wrong type.
|
||||
#[display(fmt="Invalid intermediate.")]
|
||||
InvalidIntermediate,
|
||||
/// Unable to schedule wakeup.
|
||||
#[display(fmt="Timer error: {}", _0)]
|
||||
FaultyTimer(std::io::Error),
|
||||
|
||||
Reference in New Issue
Block a user