Struct mz_persist::s3::MultipartConfig
source · struct MultipartConfig {
multipart_threshold: usize,
multipart_chunk_size: usize,
}
Fields§
§multipart_threshold: usize
§multipart_chunk_size: usize
Implementations§
source§impl MultipartConfig
impl MultipartConfig
sourceconst DEFAULT_MULTIPART_THRESHOLD: usize = 8_388_608usize
const DEFAULT_MULTIPART_THRESHOLD: usize = 8_388_608usize
The minimum object size for which we start using multipart upload.
From the official aws cli
tool implementation:
https://github.com/aws/aws-cli/blob/2.4.14/awscli/customizations/s3/transferconfig.py#L18-L29
sourceconst DEFAULT_MULTIPART_CHUNK_SIZE: usize = 8_388_608usize
const DEFAULT_MULTIPART_CHUNK_SIZE: usize = 8_388_608usize
The size of each part (except the last) in a multipart upload.
From the official aws cli
tool implementation:
https://github.com/aws/aws-cli/blob/2.4.14/awscli/customizations/s3/transferconfig.py#L18-L29
sourceconst MAX_SINGLE_UPLOAD_SIZE: usize = 5_497_558_138_880usize
const MAX_SINGLE_UPLOAD_SIZE: usize = 5_497_558_138_880usize
The largest size object creatable in S3.
From https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html
sourceconst MIN_UPLOAD_CHUNK_SIZE: usize = 5_242_880usize
const MIN_UPLOAD_CHUNK_SIZE: usize = 5_242_880usize
The minimum size of a part in a multipart upload.
This minimum doesn’t apply to the last chunk, which can be any size.
From https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html
sourceconst MIN_PART_NUM: u32 = 1u32
const MIN_PART_NUM: u32 = 1u32
The smallest allowable part number (inclusive).
From https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html
sourceconst MAX_PART_NUM: u32 = 10_000u32
const MAX_PART_NUM: u32 = 10_000u32
The largest allowable part number (inclusive).
From https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html
fn should_multipart(&self, blob_len: usize) -> Result<bool, String>
fn part_iter(&self, blob_len: usize) -> MultipartChunkIter ⓘ
Trait Implementations§
source§impl Clone for MultipartConfig
impl Clone for MultipartConfig
source§fn clone(&self) -> MultipartConfig
fn clone(&self) -> MultipartConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MultipartConfig
impl Debug for MultipartConfig
Auto Trait Implementations§
impl Freeze for MultipartConfig
impl RefUnwindSafe for MultipartConfig
impl Send for MultipartConfig
impl Sync for MultipartConfig
impl Unpin for MultipartConfig
impl UnwindSafe for MultipartConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.