pub enum PipelineError {
Show 16 variants
Eof,
NotEnoughData,
ChannelProviderEmpty,
ChannelAlreadyBuilt,
ChannelNotFound,
ChannelReaderEmpty,
BatchQueueEmpty,
MissingOrigin,
MissingL1Data,
InvalidBatchType,
InvalidBatchValidity,
SystemConfigUpdate(SystemConfigUpdateError),
AttributesBuilder(BuilderError),
BadEncoding(PipelineEncodingError),
EndOfSource,
Provider(String),
}
Expand description
An error encountered during the processing.
Variants§
Eof
There is no data to read from the channel bank.
NotEnoughData
There is not enough data to complete the processing of the stage. If the operation is re-tried, more data will come in allowing the pipeline to progress, or eventually a PipelineError::Eof will be encountered.
ChannelProviderEmpty
No channels are available in the ChannelProvider.
ChannelAlreadyBuilt
The channel has already been built by the ChannelAssembler stage.
ChannelNotFound
Failed to find channel in the ChannelProvider.
ChannelReaderEmpty
No channel returned by the ChannelReader stage.
BatchQueueEmpty
The BatchQueue is empty.
MissingOrigin
Missing L1 origin.
MissingL1Data
Missing data from L1Retrieval.
InvalidBatchType
Invalid batch type passed.
InvalidBatchValidity
Invalid batch validity variant.
SystemConfigUpdate(SystemConfigUpdateError)
SystemConfig update error.
AttributesBuilder(BuilderError)
Attributes builder error variant, with BuilderError.
BadEncoding(PipelineEncodingError)
PipelineEncodingError variant.
EndOfSource
The data source can no longer provide any more data.
Provider(String)
Provider error variant.
Implementations§
Source§impl PipelineError
impl PipelineError
Sourcepub const fn crit(self) -> PipelineErrorKind
pub const fn crit(self) -> PipelineErrorKind
Wrap PipelineError as a PipelineErrorKind::Critical.
Sourcepub const fn temp(self) -> PipelineErrorKind
pub const fn temp(self) -> PipelineErrorKind
Wrap PipelineError as a PipelineErrorKind::Temporary.
Trait Implementations§
Source§impl Debug for PipelineError
impl Debug for PipelineError
Source§impl Display for PipelineError
impl Display for PipelineError
Source§impl Error for PipelineError
impl Error for PipelineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BuilderError> for PipelineError
impl From<BuilderError> for PipelineError
Source§fn from(err: BuilderError) -> PipelineError
fn from(err: BuilderError) -> PipelineError
Source§impl From<PipelineEncodingError> for PipelineError
impl From<PipelineEncodingError> for PipelineError
Source§fn from(err: PipelineEncodingError) -> PipelineError
fn from(err: PipelineEncodingError) -> PipelineError
Source§impl PartialEq for PipelineError
impl PartialEq for PipelineError
impl Eq for PipelineError
impl StructuralPartialEq for PipelineError
Auto Trait Implementations§
impl !Freeze for PipelineError
impl RefUnwindSafe for PipelineError
impl Send for PipelineError
impl Sync for PipelineError
impl Unpin for PipelineError
impl UnwindSafe for PipelineError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more