use super::*;
pub mod file_system;
pub mod in_memory;
pub trait ObjectStore {
type Error: Into<YsError>;
fn has(&self, id: ObjectID) -> impl Future<Output=Result<bool, Self::Error>> + Send;
fn read(&self, id: ObjectID) -> impl Future<Output=Result<Vec<u8>, Self::Error>> + Send;
fn insert(&mut self, object: &[u8]) -> impl Future<Output=Result<ObjectID, Self::Error>> + Send;
}