Struct mz_stash_types::StashError
source · pub struct StashError {
pub inner: InternalStashError,
}
Expand description
An error that can occur while interacting with a Stash
.
Stash errors are deliberately opaque. They generally indicate unrecoverable conditions, like running out of disk space.
Fields§
§inner: InternalStashError
Not a public API, only exposed for mz-stash.
Implementations§
source§impl StashError
impl StashError
sourcepub fn is_unrecoverable(&self) -> bool
pub fn is_unrecoverable(&self) -> bool
Reports whether the error is unrecoverable (retrying will never succeed, or a retry is not safe due to an indeterminate state).
sourcepub fn can_recover_with_write_mode(&self) -> bool
pub fn can_recover_with_write_mode(&self) -> bool
Reports whether the error can be recovered if we opened the stash in writeable
sourcepub fn should_retry(&self) -> bool
pub fn should_retry(&self) -> bool
The underlying transaction failed in a way that must be resolved by retrying
Trait Implementations§
source§impl Debug for StashError
impl Debug for StashError
source§impl Display for StashError
impl Display for StashError
source§impl Error for StashError
impl Error for StashError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<&str> for StashError
impl From<&str> for StashError
source§fn from(e: &str) -> StashError
fn from(e: &str) -> StashError
Converts to this type from the input type.
source§impl From<DecodeError> for StashError
impl From<DecodeError> for StashError
source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for StashError
impl From<Error> for StashError
source§impl From<Error> for StashError
impl From<Error> for StashError
source§fn from(e: Error) -> StashError
fn from(e: Error) -> StashError
Converts to this type from the input type.
source§impl From<Error> for StashError
impl From<Error> for StashError
source§fn from(e: Error) -> StashError
fn from(e: Error) -> StashError
Converts to this type from the input type.
source§impl From<InternalStashError> for StashError
impl From<InternalStashError> for StashError
source§fn from(inner: InternalStashError) -> StashError
fn from(inner: InternalStashError) -> StashError
Converts to this type from the input type.
source§impl From<String> for StashError
impl From<String> for StashError
source§fn from(e: String) -> StashError
fn from(e: String) -> StashError
Converts to this type from the input type.
source§impl From<TryFromProtoError> for StashError
impl From<TryFromProtoError> for StashError
source§fn from(e: TryFromProtoError) -> Self
fn from(e: TryFromProtoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StashError
impl Send for StashError
impl Sync for StashError
impl Unpin for StashError
impl !UnwindSafe for StashError
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
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
.