Skip to main content

Module ext

Module ext 

Source

Structs§

BoxedError
An opaque boxed error based on errors that implement ErrorExt trait.
PlainError
Error type with plain error message
Whatever
WhateverSnafu 🔒
SNAFU context selector for the Whatever error

Enums§

RetryHint
Describes whether an error instance is safe and useful to retry.

Constants§

RETRY_HINT_NON_RETRYABLE 🔒
RETRY_HINT_RETRYABLE 🔒

Traits§

ErrorExt
Extension to Error in std.
StackError

Functions§

retry_hint_from_io_error
Converts a std::io::Error into a conservative RetryHint.

Type Aliases§

WhateverResult
A simple Result of which the error is convertible from ErrorExt (which every GreptimeDB error implements). Use this if you are tired of writing unwraps in test codes, that you can use the ? on all GreptimeDB errors.