pub struct TransferOptions {
pub chunk_size: usize,
pub concurrency: usize,
pub compression: CompressionAlgorithm,
pub bandwidth_limit: Option<u64>,
pub retry_policy: RetryPolicy,
pub verify_on_complete: bool,
pub hash_algorithm: HashAlgorithm,
pub resumable: bool,
pub overwrite: bool,
pub mode: TransferMode,
pub preserve_metadata: bool,
}Expand description
Options that control how a transfer is performed.
Fields§
§chunk_size: usize§concurrency: usize§compression: CompressionAlgorithm§bandwidth_limit: Option<u64>§retry_policy: RetryPolicy§verify_on_complete: bool§hash_algorithm: HashAlgorithm§resumable: bool§overwrite: bool§mode: TransferMode§preserve_metadata: boolImplementations§
Source§impl TransferOptions
impl TransferOptions
Sourcepub fn with_chunk_size(self, chunk_size: usize) -> TransferOptions
pub fn with_chunk_size(self, chunk_size: usize) -> TransferOptions
Sourcepub fn with_concurrency(self, concurrency: usize) -> TransferOptions
pub fn with_concurrency(self, concurrency: usize) -> TransferOptions
Sourcepub fn with_compression(
self,
compression: CompressionAlgorithm,
) -> TransferOptions
pub fn with_compression( self, compression: CompressionAlgorithm, ) -> TransferOptions
Sourcepub fn with_bandwidth_limit(
self,
bandwidth_limit: Option<u64>,
) -> TransferOptions
pub fn with_bandwidth_limit( self, bandwidth_limit: Option<u64>, ) -> TransferOptions
Sourcepub fn with_retry_policy(self, retry_policy: RetryPolicy) -> TransferOptions
pub fn with_retry_policy(self, retry_policy: RetryPolicy) -> TransferOptions
Sourcepub fn with_verify_on_complete(
self,
verify_on_complete: bool,
) -> TransferOptions
pub fn with_verify_on_complete( self, verify_on_complete: bool, ) -> TransferOptions
Sourcepub fn with_hash_algorithm(
self,
hash_algorithm: HashAlgorithm,
) -> TransferOptions
pub fn with_hash_algorithm( self, hash_algorithm: HashAlgorithm, ) -> TransferOptions
Sourcepub fn with_resumable(self, resumable: bool) -> TransferOptions
pub fn with_resumable(self, resumable: bool) -> TransferOptions
Sourcepub fn with_overwrite(self, overwrite: bool) -> TransferOptions
pub fn with_overwrite(self, overwrite: bool) -> TransferOptions
Sourcepub fn with_mode(self, mode: TransferMode) -> TransferOptions
pub fn with_mode(self, mode: TransferMode) -> TransferOptions
Sourcepub fn with_preserve_metadata(self, preserve_metadata: bool) -> TransferOptions
pub fn with_preserve_metadata(self, preserve_metadata: bool) -> TransferOptions
Trait Implementations§
Source§impl Clone for TransferOptions
impl Clone for TransferOptions
Source§fn clone(&self) -> TransferOptions
fn clone(&self) -> TransferOptions
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 moreSource§impl Debug for TransferOptions
impl Debug for TransferOptions
Source§impl Default for TransferOptions
impl Default for TransferOptions
Source§fn default() -> TransferOptions
fn default() -> TransferOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransferOptions
impl<'de> Deserialize<'de> for TransferOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TransferOptions
impl Serialize for TransferOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TransferOptions
impl RefUnwindSafe for TransferOptions
impl Send for TransferOptions
impl Sync for TransferOptions
impl Unpin for TransferOptions
impl UnwindSafe for TransferOptions
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