pub enum ScanError {
Show 14 variants
ZeroDimension,
RowDataLength {
dimension: usize,
actual: usize,
},
SchemeMismatch {
query: QuantScheme,
rows: QuantScheme,
},
FactorCount {
expected: usize,
actual: usize,
},
NonFiniteInput {
index: usize,
},
NonFiniteScore {
row_id: usize,
},
Quant(QuantError),
Rescore(RescoreError),
ArithmeticOverflow,
WorkerPanicked,
CpuCount(String),
Timeout {
partial: bool,
},
Cancelled {
partial: bool,
},
ReadCancelled {
partial: bool,
},
}Expand description
Typed failure from exact scan validation or scoring.
Variants§
ZeroDimension
The query dimension was zero.
RowDataLength
Row data was not an exact multiple of the query dimension.
SchemeMismatch
Query and row representations selected different schemes.
FactorCount
Row-factor count differed from the encoded row count.
NonFiniteInput
An input coordinate was NaN or infinite.
NonFiniteScore
A computed row score was NaN or infinite.
Quant(QuantError)
A quantization scorer rejected encoded input.
Rescore(RescoreError)
Explicit candidate-rescore controls or selected rows were rejected.
ArithmeticOverflow
Candidate-window arithmetic overflowed usize.
WorkerPanicked
A persistent scan worker panicked before returning a typed result.
CpuCount(String)
The operating system could not report a usable CPU count.
Timeout
A store query deadline expired. Partial results are never returned.
Cancelled
A caller-provided token cancelled the store query.
ReadCancelled
Store close cancelled an already admitted query.
Trait Implementations§
impl Eq for ScanError
Source§impl Error for ScanError
impl Error for ScanError
1.30.0 · 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
use the Display impl or to_string()