use crate::domain::transfer::{TransferKind, TransferTask}; pub fn new_task( kind: TransferKind, connection_id: impl Into, local_path: impl Into, remote_path: impl Into, file_name: impl Into, total_bytes: u64, ) -> TransferTask { TransferTask::new( kind, connection_id.into(), local_path.into(), remote_path.into(), file_name.into(), total_bytes, ) }