pub enum Error {
Native(NativeError),
BadCast,
IndexDescription,
BadFilePath,
}
Expand description
The main error type.
Variants§
Native(NativeError)
The error came from a native Faiss exception.
BadCast
Invalid index type cast.
IndexDescription
Invalid index description.
BadFilePath
Invalid file path.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<NativeError> for Error
impl From<NativeError> for Error
source§fn from(e: NativeError) -> Self
fn from(e: NativeError) -> Self
Converts to this type from the input type.