mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-10 05:24:32 +01:00
feat: Introduce the FromSharedDataCursor trait
This commit is contained in:
parent
c4e70d0475
commit
9e7261a48f
@ -43,3 +43,9 @@ impl BufRead for SharedDataCursor {
|
|||||||
self.0.consume(amt)
|
self.0.consume(amt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub trait FromSharedDataCursor: Sized {
|
||||||
|
type Err;
|
||||||
|
|
||||||
|
fn from_shared_data_cursor(data: &mut SharedDataCursor) -> Result<Self, Self::Err>;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user