pub enum MemvidError {
Memvid(MemvidError),
Io(Error),
Serde(Error),
UnsupportedFilter(String),
Poisoned,
}Expand description
Errors produced by rig-memvid.
Variants§
Memvid(MemvidError)
Underlying memvid-core failure.
Io(Error)
I/O error while opening, creating, or locking a memvid file.
Serde(Error)
Serde failure while round-tripping a hit into the caller’s document type, or while encoding metadata into JSON for storage.
UnsupportedFilter(String)
A filter clause was constructed that memvid cannot represent (for
example a gt/lt predicate, an or combination, or an eq against
an unknown key).
Poisoned
The store’s mutex was poisoned by a previous panic.
Trait Implementations§
Source§impl Debug for MemvidError
impl Debug for MemvidError
Source§impl Display for MemvidError
impl Display for MemvidError
Source§impl Error for MemvidError
impl Error for MemvidError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for MemvidError
impl From<Error> for MemvidError
Source§impl From<Error> for MemvidError
impl From<Error> for MemvidError
Source§impl From<MemvidError> for MemvidError
impl From<MemvidError> for MemvidError
Source§fn from(source: MemvidError) -> Self
fn from(source: MemvidError) -> Self
Source§impl From<MemvidError> for VectorStoreError
impl From<MemvidError> for VectorStoreError
Source§fn from(err: MemvidError) -> Self
fn from(err: MemvidError) -> Self
Map a MemvidError onto the closest VectorStoreError variant
so rig consumers can inspect failures without downcasting through
the generic DatastoreError boxed trait object.
Note: MemvidError::Memvid, MemvidError::Io, and
MemvidError::Poisoned all collapse into
VectorStoreError::DatastoreError; downstream callers that need
to distinguish them should match on the boxed source via
Error::downcast_ref::<MemvidError>().
Auto Trait Implementations§
impl Freeze for MemvidError
impl !RefUnwindSafe for MemvidError
impl Send for MemvidError
impl Sync for MemvidError
impl Unpin for MemvidError
impl UnsafeUnpin for MemvidError
impl !UnwindSafe for MemvidError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.