#[repr(i32)]pub enum FaissErrorCode {
OK = 0,
UNKNOWN_EXCEPT = -1,
FAISS_EXCEPT = -2,
STD_EXCEPT = -4,
}Expand description
An error code which depends on the exception thrown from the previous
operation. See faiss_get_last_error to retrieve the error message.
Variants§
OK = 0
No error
UNKNOWN_EXCEPT = -1
Any exception other than Faiss or standard C++ library exceptions
FAISS_EXCEPT = -2
Faiss library exception
STD_EXCEPT = -4
Standard C++ library exception
Trait Implementations§
Source§impl Clone for FaissErrorCode
impl Clone for FaissErrorCode
Source§fn clone(&self) -> FaissErrorCode
fn clone(&self) -> FaissErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FaissErrorCode
impl Debug for FaissErrorCode
Source§impl Hash for FaissErrorCode
impl Hash for FaissErrorCode
Source§impl PartialEq for FaissErrorCode
impl PartialEq for FaissErrorCode
impl Copy for FaissErrorCode
impl Eq for FaissErrorCode
impl StructuralPartialEq for FaissErrorCode
Auto Trait Implementations§
impl Freeze for FaissErrorCode
impl RefUnwindSafe for FaissErrorCode
impl Send for FaissErrorCode
impl Sync for FaissErrorCode
impl Unpin for FaissErrorCode
impl UnwindSafe for FaissErrorCode
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