pub enum MemvidError {
Show 45 variants
Io {
source: Error,
path: Option<PathBuf>,
},
Encode(EncodeError),
Decode(DecodeError),
Lock(String),
Locked(LockedError),
ChecksumMismatch {
context: &'static str,
},
InvalidHeader {
reason: Cow<'static, str>,
},
InvalidToc {
reason: Cow<'static, str>,
},
InvalidTimeIndex {
reason: Cow<'static, str>,
},
InvalidLogicMesh {
reason: Cow<'static, str>,
},
LogicMeshNotEnabled,
NerModelNotAvailable {
reason: Cow<'static, str>,
},
InvalidTier,
LexNotEnabled,
VecNotEnabled,
ClipNotEnabled,
VecDimensionMismatch {
expected: u32,
actual: usize,
},
AuxiliaryFileDetected {
path: PathBuf,
},
WalCorruption {
offset: u64,
reason: Cow<'static, str>,
},
ManifestWalCorrupted {
offset: u64,
reason: &'static str,
},
CheckpointFailed {
reason: String,
},
TicketSequence {
expected: i64,
actual: i64,
},
TicketRequired {
tier: Tier,
},
CapacityExceeded {
current: u64,
limit: u64,
required: u64,
},
ApiKeyRequired {
file_size: u64,
limit: u64,
},
MemoryAlreadyBound {
existing_memory_id: Uuid,
existing_memory_name: String,
bound_at: String,
},
RequiresSealed,
RequiresOpen,
DoctorNoOp,
Doctor {
reason: String,
},
FeatureUnavailable {
feature: &'static str,
},
InvalidCursor {
reason: &'static str,
},
InvalidFrame {
frame_id: FrameId,
reason: &'static str,
},
FrameNotFound {
frame_id: FrameId,
},
FrameNotFoundByUri {
uri: String,
},
TicketSignatureInvalid {
reason: Box<str>,
},
ModelSignatureInvalid {
reason: Box<str>,
},
ModelManifestInvalid {
reason: Box<str>,
},
ModelIntegrity {
reason: Box<str>,
},
ExtractionFailed {
reason: Box<str>,
},
EmbeddingFailed {
reason: Box<str>,
},
RerankFailed {
reason: Box<str>,
},
InvalidQuery {
reason: String,
},
Tantivy {
reason: String,
},
TableExtraction {
reason: String,
},
}Expand description
Canonical error surface for memvid-core.
Variants§
Io
Encode(EncodeError)
Decode(DecodeError)
Lock(String)
Locked(LockedError)
ChecksumMismatch
InvalidHeader
InvalidToc
InvalidTimeIndex
InvalidLogicMesh
LogicMeshNotEnabled
NerModelNotAvailable
InvalidTier
LexNotEnabled
VecNotEnabled
ClipNotEnabled
VecDimensionMismatch
AuxiliaryFileDetected
WalCorruption
ManifestWalCorrupted
CheckpointFailed
TicketSequence
TicketRequired
CapacityExceeded
ApiKeyRequired
MemoryAlreadyBound
RequiresSealed
RequiresOpen
DoctorNoOp
Doctor
InvalidCursor
InvalidFrame
FrameNotFound
FrameNotFoundByUri
TicketSignatureInvalid
ModelSignatureInvalid
ModelManifestInvalid
ModelIntegrity
ExtractionFailed
EmbeddingFailed
RerankFailed
InvalidQuery
Tantivy
TableExtraction
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)>
Returns 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<ClipError> for MemvidError
impl From<ClipError> for MemvidError
Source§impl From<DecodeError> for MemvidError
impl From<DecodeError> for MemvidError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for MemvidError
impl From<EncodeError> for MemvidError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for MemvidError
impl From<Error> for MemvidError
Source§impl From<LockedError> for MemvidError
impl From<LockedError> for MemvidError
Source§fn from(source: LockedError) -> Self
fn from(source: LockedError) -> Self
Converts to this type from the input type.
Source§impl From<TantivyError> for MemvidError
impl From<TantivyError> for MemvidError
Source§fn from(value: TantivyError) -> Self
fn from(value: TantivyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemvidError
impl !RefUnwindSafe for MemvidError
impl Send for MemvidError
impl Sync for MemvidError
impl Unpin 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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)
Converts
&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)
Converts
&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> 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>
Converts
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>
Converts
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 more