Enum conch_runtime::eval::RedirectAction
[−]
[src]
pub enum RedirectAction<T> {
Close(Fd),
Open(Fd, T, Permissions),
HereDoc(Fd, Vec<u8>),
}Indicates what changes should be made to the environment as a result
of a successful Redirect evaluation.
Variants
Close(Fd)Indicates that a descriptor should be closed.
Open(Fd, T, Permissions)Indicates that a descriptor should be opened with a given file handle and permissions.
HereDoc(Fd, Vec<u8>)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]
fn apply<E: ?Sized>(self, env: &mut E) -> IoResult<()> where
T: From<FileDesc>,
E: AsyncIoEnvironment + FileDescEnvironment<FileHandle = T>, [src]
T: From<FileDesc>,
E: AsyncIoEnvironment + FileDescEnvironment<FileHandle = T>,
Applies changes to a given environment as appropriate.
Trait Implementations
impl<T: Debug> Debug for RedirectAction<T>[src]
impl<T: Clone> Clone for RedirectAction<T>[src]
fn clone(&self) -> RedirectAction<T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<T: PartialEq> PartialEq for RedirectAction<T>[src]
fn eq(&self, __arg_0: &RedirectAction<T>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RedirectAction<T>) -> bool[src]
This method tests for !=.