pub enum BuildBlockError {
BuilderQuery(AcquireThenQueryError),
BuilderRusqlite(AcquireThenRusqliteError),
NodeRusqlite(AcquireThenRusqliteError),
CheckSets(CheckSetsError),
TimestampNotMonotonic,
TimestampOutOfRange,
LastBlockHeader(AcquireThenError<LastBlockHeaderError>),
BlockNumberOutOfRange,
}Expand description
Any errors that might occur within crate::build_block_fifo.
Variants§
BuilderQuery(AcquireThenQueryError)
A builder DB query error occurred.
BuilderRusqlite(AcquireThenRusqliteError)
A builder DB rusqlite error occurred.
NodeRusqlite(AcquireThenRusqliteError)
A node DB rusqlite error occurred.
CheckSets(CheckSetsError)
Failed to check and apply a sequence of solution sets.
TimestampNotMonotonic
System time produced a non-monotonic timestamp.
TimestampOutOfRange
System time is out of range of Word.
LastBlockHeader(AcquireThenError<LastBlockHeaderError>)
Failed to retrieve the last block header.
BlockNumberOutOfRange
The next block number would be out of u64 range.
Trait Implementations§
Source§impl Debug for BuildBlockError
impl Debug for BuildBlockError
Source§impl Display for BuildBlockError
impl Display for BuildBlockError
Source§impl Error for BuildBlockError
impl Error for BuildBlockError
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<AcquireThenError<Error>> for BuildBlockError
impl From<AcquireThenError<Error>> for BuildBlockError
Source§fn from(source: AcquireThenRusqliteError) -> Self
fn from(source: AcquireThenRusqliteError) -> Self
Converts to this type from the input type.
Source§impl From<AcquireThenError<Error>> for BuildBlockError
impl From<AcquireThenError<Error>> for BuildBlockError
Source§fn from(source: AcquireThenRusqliteError) -> Self
fn from(source: AcquireThenRusqliteError) -> Self
Converts to this type from the input type.
Source§impl From<AcquireThenError<LastBlockHeaderError>> for BuildBlockError
impl From<AcquireThenError<LastBlockHeaderError>> for BuildBlockError
Source§fn from(source: AcquireThenError<LastBlockHeaderError>) -> Self
fn from(source: AcquireThenError<LastBlockHeaderError>) -> Self
Converts to this type from the input type.
Source§impl From<AcquireThenError<QueryError>> for BuildBlockError
impl From<AcquireThenError<QueryError>> for BuildBlockError
Source§fn from(source: AcquireThenQueryError) -> Self
fn from(source: AcquireThenQueryError) -> Self
Converts to this type from the input type.
Source§impl From<CheckSetsError> for BuildBlockError
impl From<CheckSetsError> for BuildBlockError
Source§fn from(source: CheckSetsError) -> Self
fn from(source: CheckSetsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildBlockError
impl !RefUnwindSafe for BuildBlockError
impl Send for BuildBlockError
impl Sync for BuildBlockError
impl Unpin for BuildBlockError
impl !UnwindSafe for BuildBlockError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.