[][src]Struct mysql::QueryResult

pub struct QueryResult<'c, 't, 'tc, T: Protocol> { /* fields omitted */ }

Response to a query or statement execution.

It is an iterator:

  • over result sets (via Self::next_set)
  • over rows of a current result set (via Iterator impl)

Implementations

impl<'c, 't, 'tc, T: Protocol> QueryResult<'c, 't, 'tc, T>[src]

pub fn next_set<'d>(
    &'d mut self
) -> Option<Result<ResultSet<'c, 't, 'tc, 'd, T>>>
[src]

Returns an iterator over the current result set.

pub fn affected_rows(&self) -> u64[src]

Returns the number of affected rows for the current result set.

pub fn last_insert_id(&self) -> Option<u64>[src]

Returns the last insert id for the current result set.

pub fn warnings(&self) -> u16[src]

Returns the warnings count for the current result set.

pub fn info_ref(&self) -> &[u8][src]

Info for the current result set.

Will be empty if not defined.

pub fn info_str(&self) -> Cow<'_, str>[src]

Info for the current result set.

Will be empty if not defined.

pub fn columns(&self) -> SetColumns<'_>[src]

Returns columns of the current result rest.

Trait Implementations

impl<'c, 't, 'tc, T: Debug + Protocol> Debug for QueryResult<'c, 't, 'tc, T>[src]

impl<'c, 't, 'tc, T: Protocol> Drop for QueryResult<'c, 't, 'tc, T>[src]

impl<T: Protocol, '_, '_, '_> Iterator for QueryResult<'_, '_, '_, T>[src]

type Item = Result<Row>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'c, 't, 'tc, T> !RefUnwindSafe for QueryResult<'c, 't, 'tc, T>

impl<'c, 't, 'tc, T> Send for QueryResult<'c, 't, 'tc, T>

impl<'c, 't, 'tc, T> Sync for QueryResult<'c, 't, 'tc, T>

impl<'c, 't, 'tc, T> Unpin for QueryResult<'c, 't, 'tc, T> where
    T: Unpin,
    'tc: 't, 

impl<'c, 't, 'tc, T> !UnwindSafe for QueryResult<'c, 't, 'tc, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,