pub enum IngestionServiceError {
ParseError(String),
DatabaseError(String),
StorageError(String),
AudienceConflict {
process_id: Uuid,
existing: String,
incoming: String,
},
StreamAudienceConflict {
stream_id: Uuid,
existing: String,
incoming: String,
},
}Expand description
Error type for ingestion service operations. Categorizes errors to enable proper HTTP status code mapping.
Variants§
ParseError(String)
Client-side errors (malformed input) - maps to 400 Bad Request
DatabaseError(String)
Database errors - maps to 500 Internal Server Error
StorageError(String)
Object storage errors - maps to 500 Internal Server Error
AudienceConflict
A re-registration of an existing process_id under a different audience than the one
it was originally stamped with. Maps to 403 Forbidden – the one invariant that makes
ownership_rewrite.rs’s MAX(audience) per-process resolution sound rather than merely
assumed.
StreamAudienceConflict
A re-registration of an existing stream_id under a different audience than the one it
was originally stamped with – the stream-side mirror of Self::AudienceConflict.
Maps to 403 Forbidden.
Trait Implementations§
Source§impl Debug for IngestionServiceError
impl Debug for IngestionServiceError
Source§impl Display for IngestionServiceError
impl Display for IngestionServiceError
Source§impl Error for IngestionServiceError
impl Error for IngestionServiceError
1.30.0 · 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<IngestionServiceError> for IngestionError
impl From<IngestionServiceError> for IngestionError
Source§fn from(err: IngestionServiceError) -> Self
fn from(err: IngestionServiceError) -> Self
Auto Trait Implementations§
impl Freeze for IngestionServiceError
impl RefUnwindSafe for IngestionServiceError
impl Send for IngestionServiceError
impl Sync for IngestionServiceError
impl Unpin for IngestionServiceError
impl UnsafeUnpin for IngestionServiceError
impl UnwindSafe for IngestionServiceError
Blanket Implementations§
impl<T> Allocation for T
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more§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].