pub struct ResultSet<'a, P, R>where
P: Protocol,
R: FromQueryResult,{ /* private fields */ }
Implementations§
Source§impl<'a, P, R> ResultSet<'a, P, R>where
P: Protocol,
R: FromQueryResult,
impl<'a, P, R> ResultSet<'a, P, R>where
P: Protocol,
R: FromQueryResult,
pub async fn next(&mut self) -> Result<Option<R>, Error>
pub async fn collect(&mut self) -> Result<Vec<R>, Error>
pub async fn one(&mut self) -> Result<Option<R>, Error>
pub fn columns(&self) -> &[Column]
pub fn into_columns(self) -> Vec<Column>
pub fn mapping(&self) -> &R::Mapping
pub fn into_mapping(self) -> R::Mapping
pub fn into_inner(self) -> (Vec<Column>, R::Mapping)
pub async fn finish(self) -> Result<OkPacket, Error>
pub async fn finish_into_inner( self, ) -> Result<(OkPacket, Vec<Column>, R::Mapping), Error>
Auto Trait Implementations§
impl<'a, P, R> Freeze for ResultSet<'a, P, R>
impl<'a, P, R> !RefUnwindSafe for ResultSet<'a, P, R>
impl<'a, P, R> Send for ResultSet<'a, P, R>
impl<'a, P, R> Sync for ResultSet<'a, P, R>
impl<'a, P, R> Unpin for ResultSet<'a, P, R>
impl<'a, P, R> !UnwindSafe for ResultSet<'a, P, R>
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