pub struct BufferedReader { /* private fields */ }Expand description
A reader over an already-materialized batch, preserving result-set boundaries.
Providers and wrappers that materialize the bounded batch before returning use this. It has no
unread wire results, so finish_async and has_next_set_async only discard the in-memory rows. Empty sets
remain representable and countable.
Implementations§
Trait Implementations§
Source§impl Debug for BufferedReader
impl Debug for BufferedReader
Source§impl Reader for BufferedReader
impl Reader for BufferedReader
Source§fn next_row_async(&mut self) -> DbFuture<'_, Option<Row>>
fn next_row_async(&mut self) -> DbFuture<'_, Option<Row>>
Returns the next row in the current result set, or
None at the set’s end. Read moreSource§fn has_next_set_async(&mut self) -> DbFuture<'_, bool>
fn has_next_set_async(&mut self) -> DbFuture<'_, bool>
Advances to the next result set, discarding any unread rows in the current one. Read more
Source§fn finish_async(&mut self) -> DbFuture<'_, ()>
fn finish_async(&mut self) -> DbFuture<'_, ()>
Drains and discards every remaining row and result set. Read more
Auto Trait Implementations§
impl Forget for BufferedReader
impl Freeze for BufferedReader
impl Move for BufferedReader
impl RefUnwindSafe for BufferedReader
impl Send for BufferedReader
impl Sync for BufferedReader
impl Unpin for BufferedReader
impl UnsafeUnpin for BufferedReader
impl UnwindSafe for BufferedReader
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