pub struct TransferOptions {
pub max_concurrency: usize,
pub chunk_size: usize,
pub pin: Option<String>,
pub cancel_token: Option<CancellationToken>,
pub progress_interval: Duration,
}Expand description
Options configuring the transfer orchestrator.
Fields§
§max_concurrency: usizeMaximum number of files to upload in parallel (default: 4).
chunk_size: usizeChunk size in bytes when streaming from disk to network (default: 128 KB).
pin: Option<String>Optional PIN code for recipient authentication.
cancel_token: Option<CancellationToken>Optional cancellation token.
progress_interval: DurationInterval between progress emissions per file (default: 100ms).
Trait Implementations§
Source§impl Clone for TransferOptions
impl Clone for TransferOptions
Source§impl Debug for TransferOptions
impl Debug for TransferOptions
Auto Trait Implementations§
impl Freeze for TransferOptions
impl RefUnwindSafe for TransferOptions
impl Send for TransferOptions
impl Sync for TransferOptions
impl Unpin for TransferOptions
impl UnsafeUnpin for TransferOptions
impl UnwindSafe for TransferOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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