Skip to main content

RowDecoder

Trait RowDecoder 

Source
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§

Source

fn clear_table_maps(&mut self)

Source

fn table_map(&mut self, body: &[u8]) -> Result<()>

Source

fn rows( &mut self, event_type: u8, body: &[u8], emit: &mut dyn FnMut(Change<'_>) -> Result<()>, ) -> Result<()>

Provided Methods§

Source

fn table_map_event(&mut self, event: TableMapEvent<'_>) -> Result<()>

Source

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".

Implementors§