pub struct ConstantLargeFileLoadStrategy {
pub part_size: u64,
pub chunk_size: u16,
}Expand description
Dictates how large file parts are loaded
the approximate total bytes of the file that would be loaded at once will equal file_size / chunk_size rounded up to biggest number.
part_size must be smaller than the calculated number.
For example, if we take the default values for bytes and chunk_size of 5 Mib and 3, and we’re upload a 500 Mib file
the total bytes of the file that would be loaded at once will equal 500 / 3 which is ~166 mibs.
Fields§
§part_size: u64size of the file part, from 5 Mib - 5 Gib.
Default 5 Mib.
chunk_size: u16How many parts are handled per task. must be at least 1.
Default 3.
Trait Implementations§
Source§impl Clone for ConstantLargeFileLoadStrategy
impl Clone for ConstantLargeFileLoadStrategy
Source§fn clone(&self) -> ConstantLargeFileLoadStrategy
fn clone(&self) -> ConstantLargeFileLoadStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConstantLargeFileLoadStrategy
impl RefUnwindSafe for ConstantLargeFileLoadStrategy
impl Send for ConstantLargeFileLoadStrategy
impl Sync for ConstantLargeFileLoadStrategy
impl Unpin for ConstantLargeFileLoadStrategy
impl UnwindSafe for ConstantLargeFileLoadStrategy
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