pub struct FileTransferSettings {
pub concurrent_requests: usize,
pub failure_interval: Duration,
pub failure_expiry: Duration,
pub retry: NetworkRetry,
}
Available on crate feature
files
only.Expand description
Settings for file transfer operations.
Fields§
§concurrent_requests: usize
Number of concurrent requests.
failure_interval: Duration
Duration to poll the failure queue for expired failures.
failure_expiry: Duration
Duration after which failed transfers are re-inserted back into the transfers queue.
retry: NetworkRetry
Settings for network retry.
Network retry here applies to each individual file transfer operation.
Implementations§
Trait Implementations§
Source§impl Clone for FileTransferSettings
impl Clone for FileTransferSettings
Source§fn clone(&self) -> FileTransferSettings
fn clone(&self) -> FileTransferSettings
Returns a copy 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 FileTransferSettings
impl Debug for FileTransferSettings
Auto Trait Implementations§
impl Freeze for FileTransferSettings
impl RefUnwindSafe for FileTransferSettings
impl Send for FileTransferSettings
impl Sync for FileTransferSettings
impl Unpin for FileTransferSettings
impl UnwindSafe for FileTransferSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more