pub trait RowDecoder: Send {
// Required methods
fn clear_table_maps(&mut self);
fn table_map(&mut self, body: &[u8]) -> Result<()>;
fn rows(
&mut self,
event_type: u8,
body: &[u8],
emit: &mut dyn FnMut(Change<'_>) -> Result<()>,
) -> Result<()>;
// Provided methods
fn table_map_event(&mut self, event: TableMapEvent<'_>) -> Result<()> { ... }
fn rows_event(
&mut self,
event: RowsEvent<'_>,
emit: &mut dyn FnMut(Change<'_>) -> Result<()>,
) -> Result<()> { ... }
}Required Methods§
fn clear_table_maps(&mut self)
fn table_map(&mut self, body: &[u8]) -> Result<()>
fn rows( &mut self, event_type: u8, body: &[u8], emit: &mut dyn FnMut(Change<'_>) -> Result<()>, ) -> Result<()>
Provided Methods§
fn table_map_event(&mut self, event: TableMapEvent<'_>) -> Result<()>
fn rows_event( &mut self, event: RowsEvent<'_>, emit: &mut dyn FnMut(Change<'_>) -> Result<()>, ) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".