pub struct Ssh {
pub h: Handle<SshClient>,
pub c: Channel,
pub channel: String,
pub remote_cmd: String,
pub path: String,
pub is_running: bool,
pub name: String,
/* private fields */
}
Fields§
§h: Handle<SshClient>
§c: Channel
§channel: String
§remote_cmd: String
§path: String
§is_running: bool
§name: String
Implementations§
Source§impl Ssh
impl Ssh
pub async fn finish(&mut self) -> Result<(), Error>
pub async fn get_state( &mut self, mid: Option<u64>, ) -> Result<Option<(u64, Merkle, Merkle)>, Error>
pub async fn get_id(&mut self) -> Result<Option<RemoteId>, Error>
pub async fn prove(&mut self, key: SKey) -> Result<(), Error>
pub async fn archive<W: Write + Send + 'static>( &mut self, prefix: Option<String>, state: Option<(Merkle, &[Hash])>, w: W, ) -> Result<u64, Error>
pub async fn run_protocol(&mut self) -> Result<(), Error>
pub async fn download_changelist<A, F: FnMut(&mut A, u64, Hash, Merkle, bool) -> Result<(), Error>>( &mut self, f: F, a: &mut A, from: u64, paths: &[String], ) -> Result<HashSet<Position<Hash>>, Error>
pub async fn upload_changes( &mut self, progress_bar: ProgressBar, local: PathBuf, to_channel: Option<&str>, changes: &[CS], ) -> Result<(), Error>
pub async fn download_changes( &mut self, progress_bar: ProgressBar, c: &mut UnboundedReceiver<CS>, sender: &mut Sender<(CS, bool)>, changes_dir: &mut PathBuf, full: bool, ) -> Result<(), Error>
pub async fn update_identities( &mut self, rev: Option<u64>, path: PathBuf, ) -> Result<u64, Error>
Auto Trait Implementations§
impl Freeze for Ssh
impl !RefUnwindSafe for Ssh
impl Send for Ssh
impl Sync for Ssh
impl Unpin for Ssh
impl !UnwindSafe for Ssh
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