pub enum Store {
Local(LocalStore),
Bucket {
bucket: Box<S3Store>,
staging: LocalStore,
},
}Variants§
Implementations§
Source§impl Store
impl Store
pub async fn writable(&self) -> Result<(), Error>
pub fn scans(&self) -> u64
pub async fn exists(&self, ns: &Namespace, oid: &str) -> bool
pub async fn open(&self, ns: &Namespace, oid: &str) -> Result<Object, Error>
pub async fn write<S, E>( &self, ns: &Namespace, oid: &str, expected_size: Option<u64>, budget: Option<Budget>, chunks: S, ) -> Result<u64, Error>
pub async fn capacity(&self) -> Option<(u64, u64)>
pub async fn usage_of(&self, ns: &Namespace) -> (u64, u64)
pub async fn sweep( &self, ns: &Namespace, retained: &HashSet<String>, grace: Duration, dry_run: bool, ) -> Result<SweepReport, Error>
pub async fn dedupe( &self, ns: &Namespace, dry_run: bool, ) -> Result<DedupeReport, Error>
pub async fn compress( &self, ns: &Namespace, dry_run: bool, ) -> Result<CompressReport, Error>
pub async fn verify(&self, ns: &Namespace) -> Result<VerifyReport, Error>
Auto Trait Implementations§
impl !Freeze for Store
impl !RefUnwindSafe for Store
impl !UnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
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