pub struct ResultSet { /* private fields */ }Expand description
A single result set within a multi-result batch.
Rows are stored as PendingRow values that may be either already-decoded
Rows (eager path, used by tests and direct construction) or raw TDS
bytes (lazy path, used by crate::Client::call_procedure and
crate::Client::query_multiple). Decoding happens on pull, so per-row
decode errors surface through ResultSet::next_row and
ResultSet::collect_all.
Implementations§
Source§impl ResultSet
impl ResultSet
Sourcepub fn new(columns: Vec<Column>, rows: Vec<Row>) -> Self
pub fn new(columns: Vec<Column>, rows: Vec<Row>) -> Self
Create a new result set from already-decoded rows.
This is the eager constructor used by tests and callers that already
hold typed Rows. Production query paths use ResultSet::from_raw
(private) to defer row decoding.
Sourcepub fn rows_remaining(&self) -> usize
pub fn rows_remaining(&self) -> usize
Get the number of rows remaining.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultSet
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnsafeUnpin for ResultSet
impl UnwindSafe for ResultSet
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