crepererum commented on code in PR #405:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/405#discussion_r2494153286


##########
src/lib.rs:
##########
@@ -901,6 +894,30 @@ macro_rules! as_ref_impl {
 as_ref_impl!(Arc<dyn ObjectStore>);
 as_ref_impl!(Box<dyn ObjectStore>);
 
+/// Extension trait for [`ObjectStore`] with convinience functions.
+pub trait ObjectStoreExt {
+    /// Save the provided bytes to the specified location
+    ///
+    /// The operation is guaranteed to be atomic, it will either successfully
+    /// write the entirety of `payload` to `location`, or fail. No clients
+    /// should be able to observe a partially written object
+    fn put(
+        &self,
+        location: &Path,
+        payload: PutPayload,
+    ) -> impl Future<Output = Result<PutResult>> + Send;

Review Comment:
   MSRV got bumped in the meantime, so this is no longer relevant



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to