pub trait IfMatchUploader: Send + Sync {
// Required method
fn run_upload_if_match(
&self,
request: UploadIfMatchRequest<'_, Self>,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send;
// Provided method
fn upload_if_match(
&self,
key: &str,
data: impl Into<UploadBody>,
revision: Revision,
) -> UploadIfMatchRequest<'_, Self> { ... }
}Expand description
Upload objects only over the revision named. Implemented by a
BucketRef granting perms::IfMatchUploader.
Required Methods§
Sourcefn run_upload_if_match(
&self,
request: UploadIfMatchRequest<'_, Self>,
) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
fn run_upload_if_match( &self, request: UploadIfMatchRequest<'_, Self>, ) -> impl Future<Output = Result<ObjectAttrs, Error>> + Send
Runs the upload upload_if_match made, when
it is awaited.
Provided Methods§
Sourcefn upload_if_match(
&self,
key: &str,
data: impl Into<UploadBody>,
revision: Revision,
) -> UploadIfMatchRequest<'_, Self>
fn upload_if_match( &self, key: &str, data: impl Into<UploadBody>, revision: Revision, ) -> UploadIfMatchRequest<'_, Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".