pub(crate) trait ScanExt<T>:
Stream<Item = Result<T>>
+ Send
+ Sized {
// Required method
fn scanned(self, server: &Server) -> impl Stream<Item = Result<T>> + Send;
}Expand description
Bounds a row walk by shutdown, reports its position and shares the runtime.
After a stop request every row becomes an interrupted error, which ends a
short-circuiting consumer such as try_fold at the next row. Each row read
while the server runs advances the progress of any phase in flight. A cursor
is ready on every poll after its seek, so each row also spends cooperative
budget; otherwise a walk on a serving database would hold its worker for the
whole column.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".