Struct qt_core::q_process::ProcessChannelMode
source · pub struct ProcessChannelMode(/* private fields */);
Expand description
This enum describes the process output channel modes of QProcess. Pass one of these values to setProcessChannelMode() to set the current read channel mode.
C++ enum: QProcess::ProcessChannelMode
.
This enum describes the process output channel modes of QProcess. Pass one of these values to setProcessChannelMode() to set the current read channel mode.
Note: Windows intentionally suppresses output from GUI-only applications to inherited consoles. This does not apply to output redirected to files or pipes. To forward the output of GUI-only applications on the console nonetheless, you must use SeparateChannels and do the forwarding yourself by reading the output and writing it to the appropriate output channels.
See also setProcessChannelMode().
Implementations§
source§impl ProcessChannelMode
impl ProcessChannelMode
sourcepub const SeparateChannels: ProcessChannelMode = _
pub const SeparateChannels: ProcessChannelMode = _
QProcess manages the output of the running process, keeping standard output and standard error data in separate internal buffers. You can select the QProcess’s current read channel by calling setReadChannel(). This is the default channel mode of QProcess. (C++ enum variant: SeparateChannels = 0
)
sourcepub const MergedChannels: ProcessChannelMode = _
pub const MergedChannels: ProcessChannelMode = _
QProcess merges the output of the running process into the standard output channel (stdout
). The standard error channel (stderr
) will not receive any data. The standard output and standard error data of the running process are interleaved. (C++ enum variant: MergedChannels = 1
)
sourcepub const ForwardedChannels: ProcessChannelMode = _
pub const ForwardedChannels: ProcessChannelMode = _
QProcess forwards the output of the running process onto the main process. Anything the child process writes to its standard output and standard error will be written to the standard output and standard error of the main process. (C++ enum variant: ForwardedChannels = 2
)
sourcepub const ForwardedOutputChannel: ProcessChannelMode = _
pub const ForwardedOutputChannel: ProcessChannelMode = _
Complementary to ForwardedErrorChannel. (This value was introduced in Qt 5.2.) (C++ enum variant: ForwardedOutputChannel = 3
)
sourcepub const ForwardedErrorChannel: ProcessChannelMode = _
pub const ForwardedErrorChannel: ProcessChannelMode = _
QProcess manages the standard output of the running process, but forwards its standard error onto the main process. This reflects the typical use of command line tools as filters, where the standard output is redirected to another process or a file, while standard error is printed to the console for diagnostic purposes. (This value was introduced in Qt 5.2.) (C++ enum variant: ForwardedErrorChannel = 4
)
Trait Implementations§
source§impl Clone for ProcessChannelMode
impl Clone for ProcessChannelMode
source§fn clone(&self) -> ProcessChannelMode
fn clone(&self) -> ProcessChannelMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProcessChannelMode
impl Debug for ProcessChannelMode
source§impl From<ProcessChannelMode> for c_int
impl From<ProcessChannelMode> for c_int
source§fn from(value: ProcessChannelMode) -> Self
fn from(value: ProcessChannelMode) -> Self
source§impl From<i32> for ProcessChannelMode
impl From<i32> for ProcessChannelMode
source§impl PartialEq for ProcessChannelMode
impl PartialEq for ProcessChannelMode
source§fn eq(&self, other: &ProcessChannelMode) -> bool
fn eq(&self, other: &ProcessChannelMode) -> bool
self
and other
values to be equal, and is used
by ==
.