pub trait Spill<C> {
// Required method
fn spill(
&mut self,
chunks: &mut Vec<C>,
handles: &mut Vec<Box<dyn Fetch<C>>>,
);
}Expand description
Move in-memory chunks to backing storage, returning fetch handles.
The implementation should drain from chunks and push to handles as it
goes; on failure it may stop partway, leaving the lists in a consistent
state that will be retried in the future. If it cannot leave the lists in
a consistent state it should panic.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".