Struct ubend::Chain

source · []
pub struct Chain { /* private fields */ }
Expand description

Represents a pipe chain.

Implementations

Send signal sig to all child processes.

Create a new pipe chain. This function is called by the ubend!() macro.

Take ownership of stdin of the first process in the chain.

If the setup didn’t create a pipe at the given location or the pipe was already taken this function returns None.

Take ownership of stdout of the last process in the chain.

If the setup didn’t create a pipe at the given location or the pipe was already taken this function returns None.

Take ownership of stderr of the last process in the chain.

If the setup didn’t create a pipe at the given location or the pipe was already taken this function returns None.

Take ownership of stdin of the process at index in the chain.

If the index is out of bounds or the setup didn’t create a pipe at the given location or the pipe was already taken this function returns None.

Take ownership of stdout of the process at index in the chain.

If the index is out of bounds or the setup didn’t create a pipe at the given location or the pipe was already taken this function returns None.

Take ownership of stderr of the process at index in the chain.

If the index is out of bounds or the setup didn’t create a pipe at the given location or the pipe was already taken this function returns None.

Wait for all child processes to finish.

Wait for the last child process to finish.

Close stdin of the first child process and read stdout and stderr of the last child process (if possible) and wait for the last child process to finish.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.