pub struct ObjectStoreService(pub Arc<dyn ObjectStore>);Tuple Fields§
§0: Arc<dyn ObjectStore>Implementations§
Source§impl ObjectStoreService
impl ObjectStoreService
pub fn new(store: Arc<dyn ObjectStore>) -> Self
pub async fn put( &self, object: PutObject, ) -> Result<ObjectMetadata, ObjectStoreError>
pub async fn get( &self, key: &ObjectKey, ) -> Result<Option<StoredObject>, ObjectStoreError>
pub async fn delete(&self, key: &ObjectKey) -> Result<bool, ObjectStoreError>
Trait Implementations§
Source§impl Clone for ObjectStoreService
impl Clone for ObjectStoreService
Source§fn clone(&self) -> ObjectStoreService
fn clone(&self) -> ObjectStoreService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ObjectStoreService
impl !UnwindSafe for ObjectStoreService
impl Freeze for ObjectStoreService
impl Send for ObjectStoreService
impl Sync for ObjectStoreService
impl Unpin for ObjectStoreService
impl UnsafeUnpin for ObjectStoreService
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