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

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

An environment module for setting and getting shell file descriptors.

Uses Arc internally. If Send and Sync is not required of the implementation, see env::FileDescEnv as a cheaper alternative.

Methods

impl<T> AtomicFileDescEnv<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 AtomicFileDescEnv<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 AtomicFileDescEnv<T>
[src]

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

[src]

Formats the value using the given formatter.

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

[src]

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

impl<T> Clone for AtomicFileDescEnv<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 AtomicFileDescEnv<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 AtomicFileDescEnv<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.