pub enum Error {
Native(NativeError),
BadCast,
IndexDescription,
BadFilePath,
ParameterName,
GpuResourcesMatch,
}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.
ParameterName
Invalid parameter name of index.
GpuResourcesMatch
The number of GPU resources and devices do not match.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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<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.