pub enum UrnaError {
Show 38 variants
Io(Error),
MagicMismatch {
expected: [u8; 4],
got: [u8; 4],
},
UnsupportedVersion(u16, u16),
UnsupportedFormatVersion(u32),
UnsupportedSchemaVersion(u32),
InvalidHeaderChecksum,
SectionOffsetOutOfBounds {
section_id: u32,
offset: u64,
},
SectionChecksumMismatch(u32),
SectionNotFound(u32),
UnsupportedSectionVersion {
section_id: u32,
version: u32,
},
UnsupportedSectionEncoding {
section_id: u32,
encoding: u32,
},
SectionMisaligned {
section_id: u32,
offset: u64,
alignment: u64,
},
MalformedSectionPayload {
section_id: u32,
reason: String,
},
FooterHashMismatch,
FileSizeMismatch {
expected: u64,
got: u64,
},
FileTruncated,
ManifestInvalid(String),
MissingRequiredSection(&'static str),
EmbeddingSizeMismatch {
expected: usize,
got: usize,
},
SectionCountMismatch {
section_id: u32,
expected: usize,
got: usize,
},
UnsupportedDType(String),
UnsupportedMetric(String),
UnsupportedScoreType(String),
UnsupportedNormalize(String),
UnsupportedIndexType(String),
UnsupportedRerankPolicy(String),
InvalidModelHash(String),
InvalidEmbeddingValue,
Json(Error),
QueryValidation(String),
DimensionMismatch {
expected: usize,
got: usize,
},
InvalidK(i32),
EmptyQuery,
ZeroNormQuery,
FileNotFound(String),
UnexpectedEof,
UnsupportedFeature(String),
InvalidInput(String),
}Variants§
Io(Error)
MagicMismatch
UnsupportedVersion(u16, u16)
UnsupportedFormatVersion(u32)
UnsupportedSchemaVersion(u32)
InvalidHeaderChecksum
SectionOffsetOutOfBounds
SectionChecksumMismatch(u32)
SectionNotFound(u32)
UnsupportedSectionVersion
UnsupportedSectionEncoding
SectionMisaligned
MalformedSectionPayload
FileSizeMismatch
FileTruncated
ManifestInvalid(String)
MissingRequiredSection(&'static str)
EmbeddingSizeMismatch
SectionCountMismatch
UnsupportedDType(String)
UnsupportedMetric(String)
UnsupportedScoreType(String)
UnsupportedNormalize(String)
UnsupportedIndexType(String)
UnsupportedRerankPolicy(String)
InvalidModelHash(String)
InvalidEmbeddingValue
Json(Error)
QueryValidation(String)
DimensionMismatch
InvalidK(i32)
EmptyQuery
ZeroNormQuery
FileNotFound(String)
UnexpectedEof
UnsupportedFeature(String)
InvalidInput(String)
Trait Implementations§
Source§impl Error for UrnaError
impl Error for UrnaError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for UrnaError
impl !UnwindSafe for UrnaError
impl Freeze for UrnaError
impl Send for UrnaError
impl Sync for UrnaError
impl Unpin for UrnaError
impl UnsafeUnpin for UrnaError
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