Skip to main content

RemoteService

Trait RemoteService 

Source
pub trait RemoteService {
    // Required methods
    fn location(&self) -> Option<(String, String)>;
    fn list(&self, dir: &str) -> Result<Value>;
}
Expand description

Files on the shell’s remote host (remote.read).

Required Methods§

Source

fn location(&self) -> Option<(String, String)>

user@host and directory of the shell, if it is remote.

Source

fn list(&self, dir: &str) -> Result<Value>

List a remote directory as mouser_core::commander::Entry values.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§