pub enum Location {
Remote(RemoteLocation),
Local,
}
Expand description
Encapsulates a directory in which a program can be executed.
Variants§
Implementations§
Source§impl Location
impl Location
Sourcepub fn into_args<I>(self, args: I) -> Result<ProgramArgs, ()>
pub fn into_args<I>(self, args: I) -> Result<ProgramArgs, ()>
Using the given command-line arguments, generate a set of program arguments if they exist.
Sourcepub fn into_env_args(self) -> Result<ProgramArgs, ()>
pub fn into_env_args(self) -> Result<ProgramArgs, ()>
Using the program environment, generate a set of program arguments if they exist.
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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