pub enum StructureBatchError {
Diagnostic(Diagnostic),
DemandTooSmall {
required: usize,
available: usize,
},
RecordExceedsBudget {
required: usize,
available: usize,
},
Identity(ProviderError),
Memory(MemoryBudgetError),
DictionaryFull,
}Expand description
Failure shared by bounded structural batch readers and collectors.
Variants§
Diagnostic(Diagnostic)
A source, syntax or semantic diagnostic.
DemandTooSmall
A single record cannot fit the caller’s row or byte demand.
Fields
RecordExceedsBudget
A single indivisible record cannot fit the execution budget.
Fields
Identity(ProviderError)
Stable dataset, chunk or logical-row arithmetic overflowed.
Memory(MemoryBudgetError)
Execution memory was exhausted after source advancement was prevented.
DictionaryFull
A batch-local identifier dictionary was exhausted.
Trait Implementations§
Source§impl Debug for StructureBatchError
impl Debug for StructureBatchError
Source§impl Display for StructureBatchError
impl Display for StructureBatchError
Source§impl Error for StructureBatchError
impl Error for StructureBatchError
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()
Source§impl From<&StructureBatchError> for Diagnostic
impl From<&StructureBatchError> for Diagnostic
Source§fn from(error: &StructureBatchError) -> Self
fn from(error: &StructureBatchError) -> Self
A wrapped diagnostic is returned as it is, so its code, remedy and span survive; the rest name the kind of limit that stopped the read.
Source§impl From<Diagnostic> for StructureBatchError
impl From<Diagnostic> for StructureBatchError
Source§fn from(error: Diagnostic) -> Self
fn from(error: Diagnostic) -> Self
Converts to this type from the input type.
Source§impl From<DictionaryFull> for StructureBatchError
impl From<DictionaryFull> for StructureBatchError
Source§fn from(_: DictionaryFull) -> Self
fn from(_: DictionaryFull) -> Self
Converts to this type from the input type.
Source§impl From<MemoryBudgetError> for StructureBatchError
impl From<MemoryBudgetError> for StructureBatchError
Source§fn from(error: MemoryBudgetError) -> Self
fn from(error: MemoryBudgetError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for StructureBatchError
impl From<ProviderError> for StructureBatchError
Source§fn from(error: ProviderError) -> Self
fn from(error: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<StructureBatchError> for Diagnostic
impl From<StructureBatchError> for Diagnostic
Source§fn from(error: StructureBatchError) -> Self
fn from(error: StructureBatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StructureBatchError
impl RefUnwindSafe for StructureBatchError
impl Send for StructureBatchError
impl Sync for StructureBatchError
impl Unpin for StructureBatchError
impl UnsafeUnpin for StructureBatchError
impl UnwindSafe for StructureBatchError
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> 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> ⓘ
Converts
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> ⓘ
Converts
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