Struct aws::s3::S3Uploader [−][src]
A helper for uploading a large files to S3 storage.
Note: this uploader does not support uploading files larger than 19.5 GiB.
Fields
client: &'client S3Client
bucket: String
key: String
acl: Option<StringNonEmpty>
server_side_encryption: Option<StringNonEmpty>
sse_kms_key_id: Option<StringNonEmpty>
storage_class: Option<StringNonEmpty>
upload_id: String
parts: Vec<CompletedPart>
Implementations
impl<'client> S3Uploader<'client>
[src]
fn new(client: &'client S3Client, config: &Config, key: String) -> Self
[src]
Creates a new uploader with a given target location and upload configuration.
async fn run(
self,
reader: &mut (dyn AsyncRead + Unpin),
est_len: u64
) -> Result<(), Box<dyn Error>>
[src]
self,
reader: &mut (dyn AsyncRead + Unpin),
est_len: u64
) -> Result<(), Box<dyn Error>>
Executes the upload process.
async fn begin(&self) -> Result<String, RusotoError<CreateMultipartUploadError>>
[src]
Starts a multipart upload process.
async fn complete(
&self
) -> Result<(), RusotoError<CompleteMultipartUploadError>>
[src]
&self
) -> Result<(), RusotoError<CompleteMultipartUploadError>>
Completes a multipart upload process, asking S3 to join all parts into a single file.
async fn abort(&self) -> Result<(), RusotoError<AbortMultipartUploadError>>
[src]
Aborts the multipart upload process, deletes all uploaded parts.
async fn upload_part(
&self,
part_number: i64,
data: &[u8]
) -> Result<CompletedPart, RusotoError<UploadPartError>>
[src]
&self,
part_number: i64,
data: &[u8]
) -> Result<CompletedPart, RusotoError<UploadPartError>>
Uploads a part of the file.
The part_number
must be between 1 to 10000.
async fn upload(&self, data: &[u8]) -> Result<(), RusotoError<PutObjectError>>
[src]
Uploads a file atomically.
This should be used only when the data is known to be short, and thus relatively cheap to retry the entire upload.
fn get_timeout() -> Duration
[src]
Auto Trait Implementations
impl<'client> !RefUnwindSafe for S3Uploader<'client>
impl<'client> Send for S3Uploader<'client>
impl<'client> Sync for S3Uploader<'client>
impl<'client> Unpin for S3Uploader<'client>
impl<'client> !UnwindSafe for S3Uploader<'client>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,