use std::pin::Pin; use crate::config::DiskStorageConfig; use async_trait::async_trait; use tokio_stream::Stream; use tokio_util::bytes::Bytes; use super::Storage; pub struct DiskStorage { config: DiskStorageConfig, } impl DiskStorage { pub fn new(config: DiskStorageConfig) -> Self { Self { config } } } #[async_trait] impl Storage for DiskStorage { async fn eligible(&self, src: String) -> bool { false } async fn delete(&mut self, key: String) -> anyhow::Result<()> { Ok(()) } async fn retrieve( &self, key: String, ) -> Option> + Send>>> { None } async fn save( &mut self, key: String, stream: Pin> + Send>>, ) -> anyhow::Result<()> { todo!() } }