Skip to main content

PageSink

Trait PageSink 

Source
pub trait PageSink {
    // Required method
    fn write_page(&mut self, page: Page) -> Result<(), DecodeError>;
}
Expand description

Streaming destination for completed pages.

Required Methods§

Source

fn write_page(&mut self, page: Page) -> Result<(), DecodeError>

Receives ownership of one completed page.

§Errors

Returns a typed error if the sink cannot accept the page.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> PageSink for F
where F: FnMut(Page) -> Result<(), DecodeError>,