pub enum SearchArtifactError {
Show 14 variants
InvalidSelector {
field: &'static str,
reason: String,
},
Missing {
path: PathBuf,
},
CorruptManifest {
path: PathBuf,
reason: String,
},
CorruptDerivedIndex {
path: PathBuf,
reason: String,
},
IncompatibleManifest {
path: PathBuf,
found: u64,
supported: u32,
},
Stale {
reason: String,
},
CorruptPrimaryVectors {
path: PathBuf,
reason: String,
},
ConcurrentMutation,
Lock {
path: PathBuf,
reason: String,
},
Cancelled,
ResourceExhausted {
resource: &'static str,
limit: u64,
},
Build(String),
SourceSnapshot {
reason: String,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
}Expand description
Errors produced by shared search storage and publication.
Variants§
InvalidSelector
A caller selector cannot be normalized into the v0.5 contract.
Missing
No published artifact exists for the requested key.
CorruptManifest
A JSON manifest or publication pointer is malformed.
CorruptDerivedIndex
Backend files for a rebuildable derived text index failed validation.
IncompatibleManifest
A manifest uses a version this binary cannot consume.
Fields
Stale
A verified manifest does not describe the current source snapshot.
CorruptPrimaryVectors
Caller-supplied vector data is corrupt and must not be discarded.
ConcurrentMutation
The graph changed twice while the bounded build retry ran.
Lock
The per-artifact writer lock could not be acquired.
Cancelled
Cooperative cancellation stopped work before publication.
ResourceExhausted
A named search resource limit was exceeded.
Build(String)
Backend construction failed without publishing partial state.
SourceSnapshot
Capturing the committed graph source snapshot failed.
Io
Filesystem work failed.
Trait Implementations§
Source§impl Debug for SearchArtifactError
impl Debug for SearchArtifactError
Source§impl Display for SearchArtifactError
impl Display for SearchArtifactError
Source§impl Error for SearchArtifactError
impl Error for SearchArtifactError
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<SearchArtifactError> for GfError
impl From<SearchArtifactError> for GfError
Source§fn from(error: SearchArtifactError) -> Self
fn from(error: SearchArtifactError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for SearchArtifactError
impl !UnwindSafe for SearchArtifactError
impl Freeze for SearchArtifactError
impl Send for SearchArtifactError
impl Sync for SearchArtifactError
impl Unpin for SearchArtifactError
impl UnsafeUnpin for SearchArtifactError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more