pub struct TransferEngine { /* private fields */ }Expand description
Core transfer engine.
For now this selects the EXEC-RAW transport, but it is structured so that SFTP/SCP can be added as additional implementations.
Implementations§
Source§impl TransferEngine
impl TransferEngine
pub fn new(local_root: PathBuf) -> Self
pub fn local_root(&self) -> &Path
pub async fn run( &self, conn: &SshConnectionManager, params: TransferParams, ctx: TransferRunContext, ) -> TransferResponse
Trait Implementations§
Source§impl Clone for TransferEngine
impl Clone for TransferEngine
Source§fn clone(&self) -> TransferEngine
fn clone(&self) -> TransferEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransferEngine
impl RefUnwindSafe for TransferEngine
impl Send for TransferEngine
impl Sync for TransferEngine
impl Unpin for TransferEngine
impl UnsafeUnpin for TransferEngine
impl UnwindSafe for TransferEngine
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