Skip to main content

RowSink

Trait RowSink 

Source
pub trait RowSink: Send {
    // Required methods
    fn expects(&self) -> &[Option<SqlType>];
    fn row(&mut self, row: &mut dyn ColumnReader) -> Result<()>;
}

Required Methods§

Source

fn expects(&self) -> &[Option<SqlType>]

Checked once before any row is read; None takes any type, fewer columns are refused.

Source

fn row(&mut self, row: &mut dyn ColumnReader) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T, F> RowSink for Decoding<T, F>
where T: Send, F: FnMut(&mut dyn ColumnReader) -> Result<T> + Send,