Enum conch_runtime::eval::RedirectAction [−][src]
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]
impl<T> RedirectAction<T>
pub fn apply<E: ?Sized>(self, env: &mut E) -> IoResult<()> where
T: From<FileDesc>,
E: AsyncIoEnvironment + FileDescEnvironment<FileHandle = T>,
[src]
pub fn apply<E: ?Sized>(self, env: &mut E) -> IoResult<()> where
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: Debug> Debug for RedirectAction<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for RedirectAction<T>
[src]
impl<T: Clone> Clone for RedirectAction<T>
fn clone(&self) -> RedirectAction<T>
[src]
fn clone(&self) -> RedirectAction<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<T: PartialEq> PartialEq for RedirectAction<T>
fn eq(&self, other: &RedirectAction<T>) -> bool
[src]
fn eq(&self, other: &RedirectAction<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RedirectAction<T>) -> bool
[src]
fn ne(&self, other: &RedirectAction<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for RedirectAction<T>
[src]
impl<T: Eq> Eq for RedirectAction<T>
Auto Trait Implementations
impl<T> Send for RedirectAction<T> where
T: Send,
impl<T> Send for RedirectAction<T> where
T: Send,
impl<T> Sync for RedirectAction<T> where
T: Sync,
impl<T> Sync for RedirectAction<T> where
T: Sync,