pub enum Error {
BuildRuntime {
error: Error,
location: Location,
},
BuildRuntimeRateLimiter {
location: Location,
error: Error,
},
IllegalState {
name: String,
location: Location,
},
WaitGcTaskStop {
name: String,
error: JoinError,
location: Location,
},
}
Variants§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl ErrorExt for Error
impl ErrorExt for Error
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the error as Any so that it can be
downcast to a specific implementation.
§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Map this error to [StatusCode].
fn output_msg(&self) -> Stringwhere
Self: Sized,
§fn root_cause(&self) -> Option<&dyn Error>where
Self: Sized,
fn root_cause(&self) -> Option<&dyn Error>where
Self: Sized,
Find out root level error for nested error
Source§impl IntoError<Error> for BuildRuntimeRateLimiterSnafu
impl IntoError<Error> for BuildRuntimeRateLimiterSnafu
Source§impl IntoError<Error> for BuildRuntimeSnafu
impl IntoError<Error> for BuildRuntimeSnafu
Source§impl<__T0> IntoError<Error> for IllegalStateSnafu<__T0>
impl<__T0> IntoError<Error> for IllegalStateSnafu<__T0>
Source§impl<__T0> IntoError<Error> for WaitGcTaskStopSnafu<__T0>
impl<__T0> IntoError<Error> for WaitGcTaskStopSnafu<__T0>
Source§impl StackError for Error
impl StackError for Error
fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
fn next(&self) -> Option<&dyn StackError>
Source§fn transparent(&self) -> bool
fn transparent(&self) -> bool
Indicates whether this error is “transparent”, that it delegates its “display” and “source”
to the underlying error. Could be useful when you are just wrapping some external error,
AND can not or would not provide meaningful contextual info. For example, the
DataFusionError
.fn last(&self) -> &dyn StackErrorwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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<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>
§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> 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