pub enum FusionError {
Show 14 variants
InvalidAlpha(f64),
NonFiniteScore {
leg: FusionLeg,
rank: usize,
},
NegativeScore {
leg: FusionLeg,
rank: usize,
},
EstimatedVectorScore {
rank: usize,
},
InvalidBounds {
leg: FusionLeg,
detail: &'static str,
},
UnrankedInput {
leg: FusionLeg,
rank: usize,
},
MissingDocumentIdentity {
leg: FusionLeg,
rank: usize,
},
DuplicateDocumentIdentity {
leg: FusionLeg,
rank: usize,
},
Timeout {
partial: bool,
},
Cancelled {
partial: bool,
},
ReadCancelled {
partial: bool,
},
LegThreadStart {
leg: FusionLeg,
detail: String,
},
LegPanic {
leg: FusionLeg,
detail: &'static str,
},
Leg {
leg: FusionLeg,
kind: LegFailureKind,
detail: String,
},
}Expand description
Typed rejection from the pure fusion seam.
Variants§
InvalidAlpha(f64)
Alpha was NaN, infinite, or outside the closed unit interval.
NonFiniteScore
A raw score was NaN or infinite.
NegativeScore
Squared-L2 or BM25 was negative.
EstimatedVectorScore
The vector window still carried an estimated score.
InvalidBounds
A bounded producer supplied a range its own window contradicts.
UnrankedInput
A supposedly ranked input list changed score direction.
MissingDocumentIdentity
The caller could not map a leg-native id to the common identity.
DuplicateDocumentIdentity
Two candidates in one leg mapped to the same common identity.
Timeout
A leg timed out; partial hits are never returned.
Cancelled
A leg was cancelled; partial hits are never returned.
ReadCancelled
Store close cancelled a leg; partial hits are never returned.
LegThreadStart
A Store-owned leg thread could not be created.
Fields
LegPanic
A Store-owned leg panicked and was contained at the join seam.
Fields
Leg
A caller-owned leg failed before fusion.
Trait Implementations§
Source§impl Clone for FusionError
impl Clone for FusionError
Source§impl Debug for FusionError
impl Debug for FusionError
Source§impl Display for FusionError
impl Display for FusionError
Source§impl Error for FusionError
impl Error for FusionError
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()