Skip to main content

Finalize

Type Alias Finalize 

Source
pub type Finalize = Box<dyn FnOnce(Option<Value>, Option<Value>, u64) -> Pin<Box<dyn Future<Output = Result<ItemCollection>> + Send>> + Send>;
Expand description

Produces the finished ItemCollection (with empty items; the writer fills numberReturned) from the first item, the last item, and the number written. Called once, after the stream drains.

Aliased Typeยง

pub struct Finalize(/* private fields */);