pub enum RegistryError {
Show 14 variants
Storage(StorageError),
Proto(ProtoError),
StringTooLarge {
len: usize,
},
LockPoisoned,
BlobStoreMissing,
BlobTooLarge {
len: usize,
max: usize,
},
BlobEmpty {
id: StrHash,
},
EmptyBlobBatch,
BlobHashMismatch {
id: StrHash,
},
BlobCorrupt {
reason: String,
},
LegacyBlobLayout {
path: PathBuf,
},
BlobIo(String),
Listen(Error),
Transport(Error),
}Expand description
Failure serving a StringRegistry RPC.
Variants§
Storage(StorageError)
Registry shard failure.
Proto(ProtoError)
Malformed request payload (for example a short StrHash).
StringTooLarge
A registered string exceeds crate::MAX_REGISTERED_STRING_BYTES.
Enforced on IRIs and literal lexical forms alike: the dictionary’s job is RDF terms, not blobs, and multi-megabyte values are bad for both the gRPC message ceiling and LSM compaction.
LockPoisoned
The registry mutex was poisoned by a panicking request.
BlobStoreMissing
PutBlobChunks / PutBlobs / GetBlobs against a registry with no
blob store attached (a server-configuration state, not a
client-input error).
BlobTooLarge
A blob exceeds the 64 MiB crate::blobs::MAX_BLOB_BYTES limit.
BlobEmpty
A blob payload was empty. Empty payloads chunk to zero frames on the streamed read path (reading back as a miss), and real payloads always have at least a header, so the store rejects them at the write boundary.
EmptyBlobBatch
A PutBlobs request carried no blobs.
BlobHashMismatch
A blob payload does not hash to the id it was stored under.
BlobCorrupt
A stored blob value or segment record failed an integrity check (undecodable index value, record/locator disagreement, CRC mismatch, missing or truncated segment). Distinct from a miss: corruption is loud.
LegacyBlobLayout
The data dir still has the old one-file-per-payload blob layout. The store refuses to open instead of serving an empty index.
BlobIo(String)
A blob-store filesystem operation failed outside the RocksDB wrapper (directory creation, legacy-layout probe).
Listen(Error)
Listener setup failure.
Transport(Error)
gRPC transport failure while serving.
Trait Implementations§
Source§impl Debug for RegistryError
impl Debug for RegistryError
Source§impl Display for RegistryError
impl Display for RegistryError
Source§impl Error for RegistryError
impl Error for RegistryError
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 RegistryError
impl From<Error> for RegistryError
Source§impl From<Error> for RegistryError
impl From<Error> for RegistryError
Source§impl From<ProtoError> for RegistryError
impl From<ProtoError> for RegistryError
Source§fn from(source: ProtoError) -> Self
fn from(source: ProtoError) -> Self
Source§impl From<RegistryError> for Status
impl From<RegistryError> for Status
Source§fn from(error: RegistryError) -> Self
fn from(error: RegistryError) -> Self
Source§impl From<StorageError> for RegistryError
impl From<StorageError> for RegistryError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Auto Trait Implementations§
impl Freeze for RegistryError
impl !RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl UnsafeUnpin for RegistryError
impl !UnwindSafe for RegistryError
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].