Struct tantivy::error::DataCorruption
source · [−]pub struct DataCorruption { /* private fields */ }
Expand description
Represents a DataCorruption
error.
When facing data corruption, tantivy actually panics or returns this error.
Implementations
sourceimpl DataCorruption
impl DataCorruption
sourcepub fn new(filepath: PathBuf, comment: String) -> DataCorruption
pub fn new(filepath: PathBuf, comment: String) -> DataCorruption
Creates a DataCorruption
Error.
sourcepub fn comment_only<TStr: ToString>(comment: TStr) -> DataCorruption
pub fn comment_only<TStr: ToString>(comment: TStr) -> DataCorruption
Creates a DataCorruption
Error, when the filepath is irrelevant.
Trait Implementations
sourceimpl Debug for DataCorruption
impl Debug for DataCorruption
sourceimpl From<DataCorruption> for TantivyError
impl From<DataCorruption> for TantivyError
sourcefn from(data_corruption: DataCorruption) -> TantivyError
fn from(data_corruption: DataCorruption) -> TantivyError
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DataCorruption
impl Send for DataCorruption
impl Sync for DataCorruption
impl Unpin for DataCorruption
impl UnwindSafe for DataCorruption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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