Enum scylla::transport::query_result::FirstRowTypedError
source · pub enum FirstRowTypedError {
RowsExpected(RowsExpectedError),
RowsEmpty,
FromRowError(FromRowError),
}
Variants§
RowsExpected(RowsExpectedError)
QueryResult::first_row_typed()
called on a bad QueryResult.
Expected QueryResult.rows
to be Some
, but it was None
.
QueryResult.rows
is Some
for queries that can return rows (e.g SELECT
).
It is None
for queries that can’t return rows (e.g INSERT
).
RowsEmpty
Rows in QueryResult
are empty
FromRowError(FromRowError)
Parsing row as the given type failed
Trait Implementations§
source§impl Clone for FirstRowTypedError
impl Clone for FirstRowTypedError
source§fn clone(&self) -> FirstRowTypedError
fn clone(&self) -> FirstRowTypedError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FirstRowTypedError
impl Debug for FirstRowTypedError
source§impl Display for FirstRowTypedError
impl Display for FirstRowTypedError
source§impl Error for FirstRowTypedError
impl Error for FirstRowTypedError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FirstRowError> for FirstRowTypedError
impl From<FirstRowError> for FirstRowTypedError
source§fn from(err: FirstRowError) -> FirstRowTypedError
fn from(err: FirstRowError) -> FirstRowTypedError
Converts to this type from the input type.
source§impl From<FromRowError> for FirstRowTypedError
impl From<FromRowError> for FirstRowTypedError
source§fn from(source: FromRowError) -> Self
fn from(source: FromRowError) -> Self
Converts to this type from the input type.
source§impl From<RowsExpectedError> for FirstRowTypedError
impl From<RowsExpectedError> for FirstRowTypedError
source§fn from(source: RowsExpectedError) -> Self
fn from(source: RowsExpectedError) -> Self
Converts to this type from the input type.
source§impl PartialEq for FirstRowTypedError
impl PartialEq for FirstRowTypedError
source§fn eq(&self, other: &FirstRowTypedError) -> bool
fn eq(&self, other: &FirstRowTypedError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FirstRowTypedError
impl StructuralPartialEq for FirstRowTypedError
Auto Trait Implementations§
impl RefUnwindSafe for FirstRowTypedError
impl Send for FirstRowTypedError
impl Sync for FirstRowTypedError
impl Unpin for FirstRowTypedError
impl UnwindSafe for FirstRowTypedError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.