pub struct DiskStorage { /* private fields */ }Expand description
Disk-based storage implementation.
Implementations§
Trait Implementations§
Source§impl Storage for DiskStorage
impl Storage for DiskStorage
Source§fn store_manifest<'life0, 'async_trait>(
&'life0 self,
key: String,
entry: ManifestEntry,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_manifest<'life0, 'async_trait>(
&'life0 self,
key: String,
entry: ManifestEntry,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stores a manifest with the given key.
Source§fn get_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ManifestEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_manifest<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ManifestEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieves a manifest by key.
Source§fn store_blob<'life0, 'async_trait>(
&'life0 self,
digest: String,
data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_blob<'life0, 'async_trait>(
&'life0 self,
digest: String,
data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stores a blob with the given digest.
Source§fn get_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
digest: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
digest: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieves a blob by digest.
Source§fn create_upload<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_upload<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a new upload session with the given UUID.
Source§fn append_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uuid: &'life1 str,
data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn append_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uuid: &'life1 str,
data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Appends data to an existing upload session.
Auto Trait Implementations§
impl Freeze for DiskStorage
impl RefUnwindSafe for DiskStorage
impl Send for DiskStorage
impl Sync for DiskStorage
impl Unpin for DiskStorage
impl UnsafeUnpin for DiskStorage
impl UnwindSafe for DiskStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more