Module command

Module command 

Source
Expand description

Types representing commands and its settings.

The two most important struct for modeling command is Cmd and CmdOptions. The first one defines command name and its arguments, and the second is used to describe additional settings like command’s input/outputs, working directory and environment variables.

Cmd implements Runnable trait, and therefore it can be spawned using ProcessManagerHandle.

Modules§

builder
Alternative API for creating Cmd and CmdOptions structures.

Structs§

BufferCapacity
Wrapper type used to define buffer capacity.
Cmd
Cmd represents a single command.
CmdOptions
CmdOptions are used to describe command’s additional settings.

Enums§

CmdError
Enum returned from fallible Cmd methods.
CmdOptionsError
Enum returned from fallible CmdOptions methods.
LoggingType
Enum representing logging type of a spawned process.
MessagingType
Enum representing messaging type of a spawned process.