rs_split_table/
target.rs

1//! Traits of data savers.
2
3use tonic::Status;
4
5/// Tries to save a row.
6#[tonic::async_trait]
7pub trait DataTarget: Sync + Send + 'static {
8    type Row;
9
10    async fn save(&self, row: &Self::Row) -> Result<(), Status>;
11}