pub enum PostgresMetadataStoreError {
Sqlx(Box<Error>),
Json(Error),
HashParse(HashParseError),
ObjectKey(ObjectKeyError),
Range(RangeError),
RetentionHold(RetentionHoldError),
QuarantineCandidate(QuarantineCandidateError),
WebhookDelivery(WebhookDeliveryError),
IntegerOutOfRange,
RecordNotFound,
InvalidRecordKind,
InvalidRepoType(String),
}Expand description
Postgres metadata-store failure.
Variants§
Sqlx(Box<Error>)
Postgres access failed.
Json(Error)
JSON serialization or deserialization failed.
HashParse(HashParseError)
A stored hash value was invalid.
ObjectKey(ObjectKeyError)
A stored object key was invalid.
Range(RangeError)
A stored chunk range was invalid.
RetentionHold(RetentionHoldError)
A stored retention hold was invalid.
QuarantineCandidate(QuarantineCandidateError)
A stored quarantine candidate was invalid.
WebhookDelivery(WebhookDeliveryError)
A stored webhook delivery was invalid.
IntegerOutOfRange
A stored integer exceeded the supported range.
RecordNotFound
The requested record locator does not exist.
InvalidRecordKind
A stored record kind was invalid.
InvalidRepoType(String)
An invalid repository type string was encountered.
Trait Implementations§
Source§impl Debug for PostgresMetadataStoreError
impl Debug for PostgresMetadataStoreError
Source§impl Display for PostgresMetadataStoreError
impl Display for PostgresMetadataStoreError
Source§impl Error for PostgresMetadataStoreError
impl Error for PostgresMetadataStoreError
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<Error> for PostgresMetadataStoreError
impl From<Error> for PostgresMetadataStoreError
Source§impl From<Error> for PostgresMetadataStoreError
impl From<Error> for PostgresMetadataStoreError
Source§impl From<HashParseError> for PostgresMetadataStoreError
impl From<HashParseError> for PostgresMetadataStoreError
Source§fn from(source: HashParseError) -> Self
fn from(source: HashParseError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectKeyError> for PostgresMetadataStoreError
impl From<ObjectKeyError> for PostgresMetadataStoreError
Source§fn from(source: ObjectKeyError) -> Self
fn from(source: ObjectKeyError) -> Self
Converts to this type from the input type.
Source§impl From<QuarantineCandidateError> for PostgresMetadataStoreError
impl From<QuarantineCandidateError> for PostgresMetadataStoreError
Source§fn from(source: QuarantineCandidateError) -> Self
fn from(source: QuarantineCandidateError) -> Self
Converts to this type from the input type.
Source§impl From<RangeError> for PostgresMetadataStoreError
impl From<RangeError> for PostgresMetadataStoreError
Source§fn from(source: RangeError) -> Self
fn from(source: RangeError) -> Self
Converts to this type from the input type.
Source§impl From<RetentionHoldError> for PostgresMetadataStoreError
impl From<RetentionHoldError> for PostgresMetadataStoreError
Source§fn from(source: RetentionHoldError) -> Self
fn from(source: RetentionHoldError) -> Self
Converts to this type from the input type.
Source§impl From<WebhookDeliveryError> for PostgresMetadataStoreError
impl From<WebhookDeliveryError> for PostgresMetadataStoreError
Source§fn from(source: WebhookDeliveryError) -> Self
fn from(source: WebhookDeliveryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresMetadataStoreError
impl !UnwindSafe for PostgresMetadataStoreError
impl Freeze for PostgresMetadataStoreError
impl Send for PostgresMetadataStoreError
impl Sync for PostgresMetadataStoreError
impl Unpin for PostgresMetadataStoreError
impl UnsafeUnpin for PostgresMetadataStoreError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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