Struct conch_runtime::env::FileDescEnv [] [src]

pub struct FileDescEnv<T> { /* fields omitted */ }

An environment module for setting and getting shell file descriptors.

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

Methods

impl<T> FileDescEnv<T>
[src]

[src]

Constructs a new environment with no open file descriptors.

[src]

Constructs a new environment and initializes it with duplicated stdio file descriptors or handles of the current process.

[src]

Constructs a new environment with a provided collection of provided file descriptors in the form (shell_fd, handle, permissions).

Trait Implementations

impl<T: PartialEq> PartialEq for FileDescEnv<T>
[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<T: Eq> Eq for FileDescEnv<T>
[src]

impl<T: Debug> Debug for FileDescEnv<T>
[src]

[src]

Formats the value using the given formatter.

impl<T> Default for FileDescEnv<T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T> Clone for FileDescEnv<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> SubEnvironment for FileDescEnv<T>
[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

impl<T: Clone + Eq> FileDescEnvironment for FileDescEnv<T>
[src]

A file handle (or wrapper) to associate with shell file descriptors.

[src]

Get the permissions and a handle associated with an opened file descriptor.

[src]

Associate a file descriptor with a given handle and permissions.

[src]

Treat the specified file descriptor as closed for the current environment.