pub trait LogicalPageDecoder: Debug + Send {
// Required methods
fn wait_for_loaded(&mut self, loaded_need: u64) -> BoxFuture<'_, Result<()>>;
fn rows_loaded(&self) -> u64;
fn num_rows(&self) -> u64;
fn rows_drained(&self) -> u64;
fn drain(&mut self, num_rows: u64) -> Result<NextDecodeTask>;
fn data_type(&self) -> &DataType;
// Provided methods
fn accept_child(&mut self, _child: DecoderReady) -> Result<()> { ... }
fn rows_unloaded(&self) -> u64 { ... }
fn rows_left(&self) -> u64 { ... }
}Expand description
Stateful decoder for one logical page.
Required Methods§
fn wait_for_loaded(&mut self, loaded_need: u64) -> BoxFuture<'_, Result<()>>
fn rows_loaded(&self) -> u64
fn num_rows(&self) -> u64
fn rows_drained(&self) -> u64
fn drain(&mut self, num_rows: u64) -> Result<NextDecodeTask>
fn data_type(&self) -> &DataType
Provided Methods§
fn accept_child(&mut self, _child: DecoderReady) -> Result<()>
fn rows_unloaded(&self) -> u64
fn rows_left(&self) -> u64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".