pub fn on_finish<F: 'static + FnMut(io::Result<W>)>(
        self,
        f: F,
    ) -> AutoFinishEncoder<W> {
        AutoFinishEncoder::new(self, f)
    }
/// Returns an encoder that will finish the stream on drop.
///
/// Calls the given callback with the result from `finish()`.
Returns an encoder that will finish the stream on drop.
Calls the given callback with the result from `finish()`.
Returns an encoder that will finish the stream on drop . Calls the given callback with the result from ` finish () ` .
pub fn on_finish<F: 'static + FnMut(io::Result<W>)>(
        self,
        f: F,
    ) -> AutoFinishEncoder<W> {
        AutoFinishEncoder::new(self, f)
    }
pub fn on_finish < F : ' static + FnMut ( io :: Result < W > ) > ( self , f : F , ) -> AutoFinishEncoder < W > { AutoFinishEncoder :: new ( self , f ) }
Returns an encoder that will finish the stream on drop.
Returns an encoder that will finish the stream on drop .
self
f
F
self
f
F