pub trait StreamFactory: Send + Sync {
// Required methods
fn get_stream(
&self,
writable: bool,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn FileStream>>> + Send + Sync + '_>>;
fn exists(&self) -> Pin<Box<dyn Future<Output = bool> + Send + Sync + '_>>;
fn len(
&self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + Sync + '_>>;
fn delete(
&self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>;
}