pub enum Error {
    ParseDateStr {
        raw: String,
        error: ParseError,
    },
    InvalidDateStr {
        raw: String,
        location: Location,
    },
    ParseTimestamp {
        raw: String,
        location: Location,
    },
    TimestampOverflow {
        error: TryFromIntError,
        location: Location,
    },
    ArithmeticOverflow {
        msg: String,
        location: Location,
    },
    InvalidTimezoneOffset {
        hours: i32,
        minutes: u32,
        location: Location,
    },
    ParseOffsetStr {
        raw: String,
        error: ParseIntError,
        location: Location,
    },
    ParseTimezoneName {
        raw: String,
        location: Location,
    },
    Format {
        pattern: String,
        error: Error,
        location: Location,
    },
    ParseDuration {
        error: DurationError,
        location: Location,
    },
    InvalidDatabaseTtl {
        location: Location,
    },
}Variants§
ParseDateStr
InvalidDateStr
ParseTimestamp
TimestampOverflow
ArithmeticOverflow
InvalidTimezoneOffset
ParseOffsetStr
ParseTimezoneName
Format
ParseDuration
InvalidDatabaseTtl
Fields
§
location: LocationTrait 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 status_code(&self) -> StatusCode
 
fn status_code(&self) -> StatusCode
Map this error to [StatusCode].
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 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<__T0> IntoError<Error> for ArithmeticOverflowSnafu<__T0>
 
impl<__T0> IntoError<Error> for ArithmeticOverflowSnafu<__T0>
Source§impl<__T0> IntoError<Error> for FormatSnafu<__T0>
 
impl<__T0> IntoError<Error> for FormatSnafu<__T0>
Source§impl IntoError<Error> for InvalidDatabaseTtlSnafu
 
impl IntoError<Error> for InvalidDatabaseTtlSnafu
Source§impl<__T0> IntoError<Error> for InvalidDateStrSnafu<__T0>
 
impl<__T0> IntoError<Error> for InvalidDateStrSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for InvalidTimezoneOffsetSnafu<__T0, __T1>
 
impl<__T0, __T1> IntoError<Error> for InvalidTimezoneOffsetSnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for ParseDateStrSnafu<__T0>
 
impl<__T0> IntoError<Error> for ParseDateStrSnafu<__T0>
Source§type Source = ParseError
 
type Source = ParseError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
 
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for ParseDurationSnafu
 
impl IntoError<Error> for ParseDurationSnafu
Source§impl<__T0> IntoError<Error> for ParseOffsetStrSnafu<__T0>
 
impl<__T0> IntoError<Error> for ParseOffsetStrSnafu<__T0>
Source§type Source = ParseIntError
 
type Source = ParseIntError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
 
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for ParseTimestampSnafu<__T0>
 
impl<__T0> IntoError<Error> for ParseTimestampSnafu<__T0>
Source§impl<__T0> IntoError<Error> for ParseTimezoneNameSnafu<__T0>
 
impl<__T0> IntoError<Error> for ParseTimezoneNameSnafu<__T0>
Source§impl IntoError<Error> for TimestampOverflowSnafu
 
impl IntoError<Error> for TimestampOverflowSnafu
Source§type Source = TryFromIntError
 
type Source = TryFromIntError
The underlying error
Source§fn into_error(self, error: Self::Source) -> Error
 
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
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> 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>
§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
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>,
Applies the layer to a service and wraps it in [
Layered].