#[non_exhaustive]pub enum RowError {
ColumnNotFound(String),
IndexOutOfRange {
index: usize,
len: usize,
},
TypeConversion {
column: String,
source: ConvertError,
},
InvalidRowFormat(String),
#[non_exhaustive] Rpc {
source: Error,
},
}Expand description
Errors that can occur when retrieving value cells from a Row or iterating over query results.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ColumnNotFound(String)
The requested column name or index was not found in the row.
IndexOutOfRange
The requested column index was out of range.
TypeConversion
Failed to convert/parse the cell value to the target type.
Fields
§
source: ConvertErrorThe underlying parsing error.
InvalidRowFormat(String)
The JSON format returned by the service did not match expectations.
#[non_exhaustive]Rpc
The underlying RPC failed.
Trait Implementations§
Source§impl Error for RowError
impl Error for RowError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for RowError
impl !UnwindSafe for RowError
impl Freeze for RowError
impl Send for RowError
impl Sync for RowError
impl Unpin for RowError
impl UnsafeUnpin for RowError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§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