1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Discard backend: a zero-cost stream marker for stdio configured as `Stdio::null()`.
//!
//! A [`DiscardedOutputStream`] holds no buffers and spawns no reader task. The OS routes the child's
//! stdout or stderr to `/dev/null` (or its platform equivalent), and the parent never sees the
//! bytes. Because there is nothing to subscribe to, the type intentionally does not implement
//! [`crate::TrySubscribable`], so consumer-attaching APIs (`wait_for_completion_with_output`,
//! `inspect_lines`, etc.) are not in scope on a process whose stream is discarded.
use crateOutputStream;
use crateNumBytes;
/// Marker stream for a stdio slot configured with [`std::process::Stdio::null()`].
///
/// The OS discards the child's writes; no pipe is allocated and no reader task runs. The
/// `read_chunk_size` and `max_buffered_chunks` accessors are present because [`OutputStream`]
/// requires them, but they have no operational meaning for this variant and return zero.