bitrot streaming

Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2024-10-30 17:30:15 +08:00
parent e6cd184cd6
commit c0e6751893
6 changed files with 254 additions and 32 deletions
+3
View File
@@ -328,6 +328,9 @@ impl Erasure {
pub trait Write {
fn as_any(&self) -> &dyn Any;
async fn write(&mut self, buf: &[u8]) -> Result<()>;
async fn close(self: Box<Self>) -> Result<()> {
Ok(())
}
}
#[async_trait::async_trait]