Skip to main content

Spill

Trait Spill 

Source
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§

Source

fn spill(&mut self, chunks: &mut Vec<C>, handles: &mut Vec<Box<dyn Fetch<C>>>)

Spill chunks to storage, producing one fetch handle per spilled group.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§