pub struct TransferOrchestrator { /* private fields */ }Expand description
Orchestrates an end-to-end file transfer session to a remote peer.
Implementations§
Source§impl TransferOrchestrator
impl TransferOrchestrator
Sourcepub fn new(client: LsClient, sender_info: RegisterDtoV2) -> Self
pub fn new(client: LsClient, sender_info: RegisterDtoV2) -> Self
Creates a new transfer orchestrator.
Sourcepub async fn transfer(
&self,
base_url: &str,
files: Vec<OutgoingFile>,
options: TransferOptions,
progress_tx: Option<Sender<TransferProgress>>,
) -> Result<(), ClientError>
pub async fn transfer( &self, base_url: &str, files: Vec<OutgoingFile>, options: TransferOptions, progress_tx: Option<Sender<TransferProgress>>, ) -> Result<(), ClientError>
Executes the transfer session to base_url for the provided files.
Emits progress events over progress_tx if provided.
Auto Trait Implementations§
impl !RefUnwindSafe for TransferOrchestrator
impl !UnwindSafe for TransferOrchestrator
impl Freeze for TransferOrchestrator
impl Send for TransferOrchestrator
impl Sync for TransferOrchestrator
impl Unpin for TransferOrchestrator
impl UnsafeUnpin for TransferOrchestrator
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