1 2 3 4 5 6 7 8
use std::path::Path; // TODO: populate pub trait RemoteTransferProtocol { type Error: std::error::Error; fn read_to_file(&self, source: &Path, destination: &Path) -> Result<usize, Self::Error>; }