pub struct ManagedMultipartUploadRequest { /* private fields */ }Expand description
Request for a bounded, automatically cleaned-up multipart upload.
In-memory sources retain the caller’s complete byte buffer for the duration of the operation. File sources use only the configured in-flight part byte budget in memory; their immutable snapshot is disk-backed.
Implementations§
Source§impl ManagedMultipartUploadRequest
impl ManagedMultipartUploadRequest
Sourcepub fn from_bytes(key: ObjectKey, bytes: impl Into<Bytes>) -> Self
pub fn from_bytes(key: ObjectKey, bytes: impl Into<Bytes>) -> Self
Constructs a request with a replayable in-memory body.
Sourcepub fn from_path(key: ObjectKey, path: impl AsRef<Path>) -> Self
pub fn from_path(key: ObjectKey, path: impl AsRef<Path>) -> Self
Constructs a request with a replayable regular-file body.
The file is copied into a private disk-backed snapshot before S3 creates the multipart upload, so later changes to the source path have no effect.
Sourcepub fn with_content_type(self, content_type: impl Into<String>) -> Self
pub fn with_content_type(self, content_type: impl Into<String>) -> Self
Sets the object’s media type.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ManagedMultipartUploadRequest
impl RefUnwindSafe for ManagedMultipartUploadRequest
impl Send for ManagedMultipartUploadRequest
impl Sync for ManagedMultipartUploadRequest
impl Unpin for ManagedMultipartUploadRequest
impl UnsafeUnpin for ManagedMultipartUploadRequest
impl UnwindSafe for ManagedMultipartUploadRequest
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