pub enum BatchPlanError {
DuplicateBatch {
side: &'static str,
extractor: String,
path: String,
},
MissingBatch {
side: &'static str,
extractor: String,
path: String,
},
InvalidPayload(String),
ExtractionLimit(ExtractionLimitExceeded),
OutputCountOverflow,
OutputCountMismatch {
stored: u64,
decoded: usize,
},
}Expand description
Error returned when affected-neighborhood planning lacks a required batch.
Variants§
DuplicateBatch
Multiple batches claim the same source key.
Fields
MissingBatch
A changed source has no required previous or current output batch.
Fields
InvalidPayload(String)
A source-owned output payload could not be serialized or decoded.
ExtractionLimit(ExtractionLimitExceeded)
One per-invocation extraction resource exceeded its configured maximum.
OutputCountOverflow
An output count cannot be represented by the persistence model.
OutputCountMismatch
Persisted output count does not match the decoded payload.
Trait Implementations§
Source§impl Debug for BatchPlanError
impl Debug for BatchPlanError
Source§impl Display for BatchPlanError
impl Display for BatchPlanError
impl Eq for BatchPlanError
Source§impl Error for BatchPlanError
impl Error for BatchPlanError
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<ExtractionLimitExceeded> for BatchPlanError
impl From<ExtractionLimitExceeded> for BatchPlanError
Source§fn from(source: ExtractionLimitExceeded) -> Self
fn from(source: ExtractionLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatchPlanError
impl PartialEq for BatchPlanError
impl StructuralPartialEq for BatchPlanError
Auto Trait Implementations§
impl Freeze for BatchPlanError
impl RefUnwindSafe for BatchPlanError
impl Send for BatchPlanError
impl Sync for BatchPlanError
impl Unpin for BatchPlanError
impl UnsafeUnpin for BatchPlanError
impl UnwindSafe for BatchPlanError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.