Struct repository::DiskRepository [−][src]
pub struct DiskRepository { /* fields omitted */ }
Expand description
Represents a blob repository stored on disk.
Implementations
Trait Implementations
fn save<'life0, 'async_trait>(
&'life0 self,
id: String,
_size: u64,
stream: Box<dyn Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'static>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]fn write<'life0, 'async_trait>(
&'life0 self,
id: String,
range: (Bound<u64>, Bound<u64>),
body: Bytes
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
blob_id: &'life1 str,
range: Option<(Bound<u64>, Bound<u64>)>
) -> Pin<Box<dyn Future<Output = Result<ChunkedStreamInfo>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Auto Trait Implementations
impl RefUnwindSafe for DiskRepository
impl Send for DiskRepository
impl Sync for DiskRepository
impl Unpin for DiskRepository
impl UnwindSafe for DiskRepository