Enum conch_runtime::eval::RedirectAction[][src]

pub enum RedirectAction<T> {
    Close(Fd),
    Open(Fd, T, Permissions),
    HereDoc(FdVec<u8>),
}

Indicates what changes should be made to the environment as a result of a successful Redirect evaluation.

Variants

Indicates that a descriptor should be closed.

Indicates that a descriptor should be opened with a given file handle and permissions.

Indicates that the body of a heredoc should be asynchronously written to a file handle on a best effor basis (i.e. write as much of the body as possible but give up on appropriate errors such as broken pipes).

Methods

impl<T> RedirectAction<T>
[src]

Applies changes to a given environment as appropriate.

Trait Implementations

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

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for RedirectAction<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for RedirectAction<T>
[src]

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

This method tests for !=.

impl<T: Eq> Eq for RedirectAction<T>
[src]

Auto Trait Implementations

impl<T> Send for RedirectAction<T> where
    T: Send

impl<T> Sync for RedirectAction<T> where
    T: Sync