Struct conch_runtime::env::VirtualWorkingDirEnv [] [src]

pub struct VirtualWorkingDirEnv { /* fields omitted */ }

An environment module for keeping track of the current working directory.

This is a "virtual" implementation because changing the working directory through this environment will not affect the working directory of the entire process.

Uses Rc internally. For a possible Send and Sync implementation, see env::atomic::VirtualWorkingDirEnv.

Methods

impl VirtualWorkingDirEnv
[src]

[src]

Constructs a new environment with a provided working directory

The specified path must be an absolute path or an error will result.

[src]

Constructs a new environment and initializes it with the current working directory of the current process.

Trait Implementations

impl Debug for VirtualWorkingDirEnv
[src]

[src]

Formats the value using the given formatter.

impl Clone for VirtualWorkingDirEnv
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for VirtualWorkingDirEnv
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for VirtualWorkingDirEnv
[src]

impl WorkingDirectoryEnvironment for VirtualWorkingDirEnv
[src]

[src]

Converts the specified path to one relative to the environment's working directory.

[src]

Retrieves the current working directory of this environment.

impl ChangeWorkingDirectoryEnvironment for VirtualWorkingDirEnv
[src]

[src]

Changes the environment's current working directory to the following path. Read more

impl SubEnvironment for VirtualWorkingDirEnv
[src]

[src]

Create a new sub-environment, which starts out idential to its parent, but any changes on the new environment will not be reflected on the parent. Read more