pub enum FirstRowError {
RowsExpected(RowsExpectedError),
RowsEmpty,
}
Variants§
RowsExpected(RowsExpectedError)
LegacyQueryResult::first_row()
called on a bad LegacyQueryResult.
Expected LegacyQueryResult.rows
to be Some
, but it was None
.
LegacyQueryResult.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 LegacyQueryResult
are empty
Trait Implementations§
source§impl Clone for FirstRowError
impl Clone for FirstRowError
source§fn clone(&self) -> FirstRowError
fn clone(&self) -> FirstRowError
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 FirstRowError
impl Debug for FirstRowError
source§impl Display for FirstRowError
impl Display for FirstRowError
source§impl Error for FirstRowError
impl Error for FirstRowError
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<RowsExpectedError> for FirstRowError
impl From<RowsExpectedError> for FirstRowError
source§fn from(source: RowsExpectedError) -> Self
fn from(source: RowsExpectedError) -> Self
Converts to this type from the input type.
source§impl PartialEq for FirstRowError
impl PartialEq for FirstRowError
source§fn eq(&self, other: &FirstRowError) -> bool
fn eq(&self, other: &FirstRowError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FirstRowError
impl StructuralPartialEq for FirstRowError
Auto Trait Implementations§
impl Freeze for FirstRowError
impl RefUnwindSafe for FirstRowError
impl Send for FirstRowError
impl Sync for FirstRowError
impl Unpin for FirstRowError
impl UnwindSafe for FirstRowError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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