Enum rrun_ssh::Location
[−]
[src]
pub enum Location { Remote(RemoteLocation), Local, }
Encapsulates a directory in which a program can be executed.
Variants
Remote(RemoteLocation)
Directory on a remote server
Local
Current working directory
Methods
impl Location
[src]
fn into_args<I>(self, args: I) -> Result<ProgramArgs, ()> where
I: Iterator<Item = OsString> + ExactSizeIterator,
I: Iterator<Item = OsString> + ExactSizeIterator,
Using the given command-line arguments, generate a set of program arguments if they exist.
fn into_env_args(self) -> Result<ProgramArgs, ()>
Using the program environment, generate a set of program arguments if they exist.
Trait Implementations
impl Clone for Location
[src]
fn clone(&self) -> Location
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Location
[src]
impl PartialEq for Location
[src]
fn eq(&self, __arg_0: &Location) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Location) -> bool
This method tests for !=
.