mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-24 23:31:02 +00:00
feat: Introduce the FromSharedDataCursor trait
This commit is contained in:
@ -43,3 +43,9 @@ impl BufRead for SharedDataCursor {
|
||||
self.0.consume(amt)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait FromSharedDataCursor: Sized {
|
||||
type Err;
|
||||
|
||||
fn from_shared_data_cursor(data: &mut SharedDataCursor) -> Result<Self, Self::Err>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user