Trait tantivy::directory::TerminatingWrite
source · pub trait TerminatingWrite: Write + Send + Sync {
// Required method
fn terminate_ref(&mut self, _: AntiCallToken) -> Result<(), Error>;
// Provided method
fn terminate(self) -> Result<(), Error>
where Self: Sized { ... }
}
Expand description
Trait used to indicate when no more write need to be done on a writer
Required Methods§
sourcefn terminate_ref(&mut self, _: AntiCallToken) -> Result<(), Error>
fn terminate_ref(&mut self, _: AntiCallToken) -> Result<(), Error>
You should implement this function to define custom behavior. This function should flush any buffer it may hold.