Enum tantivy::error::TantivyError [−][src]
pub enum TantivyError {
Show 14 variants
OpenDirectoryError(OpenDirectoryError),
OpenReadError(OpenReadError),
OpenWriteError(OpenWriteError),
IndexAlreadyExists,
LockFailure(LockError, Option<String>),
IoError(Error),
DataCorruption(DataCorruption),
Poisoned,
InvalidArgument(String),
ErrorInThread(String),
IndexBuilderMissingArgument(&'static str),
SchemaError(String),
SystemError(String),
IncompatibleIndex(Incompatibility),
}
Expand description
The library’s error enum
Variants
Failed to open the directory.
Tuple Fields of OpenDirectoryError
Failed to open a file for read.
Tuple Fields of OpenReadError
Failed to open a file for write.
Tuple Fields of OpenWriteError
Index already exists in this directory
Failed to acquire file lock
IO Error.
Tuple Fields of IoError
0: Error
Data corruption.
Tuple Fields of DataCorruption
A thread holding the locked panicked and poisoned the lock.
Invalid argument was passed by the user.
Tuple Fields of InvalidArgument
0: String
An Error happened in one of the thread.
Tuple Fields of ErrorInThread
0: String
An Error appeared related to opening or creating a index.
Tuple Fields of IndexBuilderMissingArgument
0: &'static str
An Error appeared related to the schema.
Tuple Fields of SchemaError
0: String
System error. (e.g.: We failed spawning a new thread)
Tuple Fields of SystemError
0: String
Index incompatible with current version of tantivy
Tuple Fields of IncompatibleIndex
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TantivyError
impl Send for TantivyError
impl Sync for TantivyError
impl Unpin for TantivyError
impl !UnwindSafe for TantivyError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more