Enum mz_persist::location::ExternalError
source · pub enum ExternalError {
Determinate(Determinate),
Indeterminate(Indeterminate),
}
Expand description
An error coming from an underlying durability system (e.g. s3) or from invalid data received from one.
Variants§
Determinate(Determinate)
A determinate error from an external system.
Indeterminate(Indeterminate)
An indeterminate error from an external system.
Implementations§
source§impl ExternalError
impl ExternalError
sourcepub fn new_timeout(deadline: Instant) -> Self
pub fn new_timeout(deadline: Instant) -> Self
Returns a new error representing a timeout.
TODO: When we overhaul errors, this presumably should instead be a type that can be matched on.
sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Returns whether this error represents a timeout.
TODO: When we overhaul errors, this presumably should instead be a type that can be matched on.
Trait Implementations§
source§impl Debug for ExternalError
impl Debug for ExternalError
source§impl Display for ExternalError
impl Display for ExternalError
source§impl Error for ExternalError
impl Error for ExternalError
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<Determinate> for ExternalError
impl From<Determinate> for ExternalError
source§fn from(x: Determinate) -> Self
fn from(x: Determinate) -> Self
Converts to this type from the input type.
source§impl From<Error> for ExternalError
impl From<Error> for ExternalError
source§impl From<Error> for ExternalError
impl From<Error> for ExternalError
source§impl From<Error> for ExternalError
impl From<Error> for ExternalError
source§impl From<Error> for ExternalError
impl From<Error> for ExternalError
source§impl From<ExternalError> for Error
impl From<ExternalError> for Error
source§fn from(e: ExternalError) -> Self
fn from(e: ExternalError) -> Self
Converts to this type from the input type.
source§impl From<Indeterminate> for ExternalError
impl From<Indeterminate> for ExternalError
source§fn from(x: Indeterminate) -> Self
fn from(x: Indeterminate) -> Self
Converts to this type from the input type.
source§impl From<JoinError> for ExternalError
impl From<JoinError> for ExternalError
source§impl From<PostgresError> for ExternalError
impl From<PostgresError> for ExternalError
source§fn from(x: PostgresError) -> Self
fn from(x: PostgresError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExternalError
impl PartialEq for ExternalError
An impl of PartialEq purely for convenience in tests and debug assertions.
Auto Trait Implementations§
impl Freeze for ExternalError
impl !RefUnwindSafe for ExternalError
impl Send for ExternalError
impl Sync for ExternalError
impl Unpin for ExternalError
impl !UnwindSafe for ExternalError
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<E> ErrorExt for E
impl<E> ErrorExt for E
source§fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
Returns a type that displays the error, along with the chain of source errors or
causes, if there are any. Read more
source§fn to_string_with_causes(&self) -> String
fn to_string_with_causes(&self) -> String
Converts
self
to a string String
, along with the chain of source errors or
causes, if there are any. Read moresource§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.