pub enum BigTableError {
InvalidRowResponse(Error),
InvalidChunk(String),
Read(Error),
WriteTime(SystemTimeError),
Write(Error),
GRPC(Error),
Status(MutateRowStatus, String),
Admin(String, Option<String>),
Pool(Box<PoolError<BigTableError>>),
PoolTimeout(TimeoutType),
Config(String),
CircuitBreakerOpen,
}Variants§
InvalidRowResponse(Error)
InvalidChunk(String)
Read(Error)
WriteTime(SystemTimeError)
Write(Error)
GRPC(Error)
Status(MutateRowStatus, String)
Return a GRPC status code and any message. See https://grpc.github.io/grpc/core/md_doc_statuscodes.html
Admin(String, Option<String>)
Pool(Box<PoolError<BigTableError>>)
General Pool errors
PoolTimeout(TimeoutType)
Timeout occurred while getting a pooled connection
Config(String)
CircuitBreakerOpen
Implementations§
Source§impl BigTableError
impl BigTableError
pub fn status(&self) -> StatusCode
Trait Implementations§
Source§impl Debug for BigTableError
impl Debug for BigTableError
Source§impl Display for BigTableError
impl Display for BigTableError
Source§impl Error for BigTableError
impl Error for BigTableError
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<BigTableError> for DbError
impl From<BigTableError> for DbError
Source§fn from(source: BigTableError) -> Self
fn from(source: BigTableError) -> Self
Converts to this type from the input type.
Source§impl ReportableError for BigTableError
impl ReportableError for BigTableError
Source§fn is_sentry_event(&self) -> bool
fn is_sentry_event(&self) -> bool
Whether this error is reported to Sentry
Source§fn metric_label(&self) -> Option<&'static str>
fn metric_label(&self) -> Option<&'static str>
Errors that don’t emit Sentry events (!is_sentry_event()) emit an
increment metric instead with this label
Experimental: return tag key value pairs for metrics and Sentry
Source§fn extras(&self) -> Vec<(&str, String)>
fn extras(&self) -> Vec<(&str, String)>
Experimental: return key value pairs for Sentry Event’s extra data
TODO: should probably return Vec<(&str, Value)> or Vec<(String, Value)>
Source§fn reportable_source(&self) -> Option<&(dyn ReportableError + 'static)>
fn reportable_source(&self) -> Option<&(dyn ReportableError + 'static)>
Like [Error::source] but returns the source (if any) of this error as a
ReportableError if it implements the trait. Otherwise callers of this
method will likely subsequently call [Error::source] to return the
source (if any) as the parent [Error] trait.
Auto Trait Implementations§
impl Freeze for BigTableError
impl !RefUnwindSafe for BigTableError
impl Send for BigTableError
impl Sync for BigTableError
impl Unpin for BigTableError
impl UnsafeUnpin for BigTableError
impl !UnwindSafe for BigTableError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.