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

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

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

Required Methods

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

Provided Methods

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

Implementations on Foreign Types

Implementors