Trait tantivy::directory::TerminatingWrite[][src]

pub trait TerminatingWrite: Write {
    fn terminate_ref(&mut self, _: AntiCallToken) -> Result<()>;

    fn terminate(mut self: Self) -> Result<()>
    where
        Self: Sized
, { ... } }

Trait used to indicate when no more write need to be done on a writer

Required methods

fn terminate_ref(&mut self, _: AntiCallToken) -> Result<()>[src]

You should implement this function to define custom behavior. This function should flush any buffer it may hold.

Loading content...

Provided methods

fn terminate(mut self: Self) -> Result<()> where
    Self: Sized
[src]

Indicate that the writer will no longer be used. Internally call terminate_ref.

Loading content...

Implementations on Foreign Types

impl<W: TerminatingWrite + ?Sized> TerminatingWrite for Box<W>[src]

impl<W: TerminatingWrite> TerminatingWrite for BufWriter<W>[src]

Loading content...

Implementors

Loading content...