Struct Cursor

Source
pub struct Cursor<'client> { /* private fields */ }
Expand description

Represents a PostgreSQL cursor.

The actual cursor in the database is only created and active while Iter is in scope and calls to next() return Some.

Implementations§

Source§

impl<'client> Cursor<'client>

Source

pub fn build<'b>(client: &'b mut Client) -> Builder<'b, 'static, str>

Source§

impl<'a> Cursor<'a>

Source

pub fn iter<'b>(&'b mut self) -> Iter<'b, 'a>

Trait Implementations§

Source§

impl<'a> Drop for Cursor<'a>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'a, 'client> IntoIterator for &'a mut Cursor<'client>

Source§

type Item = Result<Vec<Row>, Error>

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, 'client>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Iter<'a, 'client>

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<'client> Freeze for Cursor<'client>

§

impl<'client> !RefUnwindSafe for Cursor<'client>

§

impl<'client> Send for Cursor<'client>

§

impl<'client> !Sync for Cursor<'client>

§

impl<'client> Unpin for Cursor<'client>

§

impl<'client> !UnwindSafe for Cursor<'client>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V