pub struct DiscardedOutputStream { /* private fields */ }Expand description
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.
Trait Implementations§
Source§impl Clone for DiscardedOutputStream
impl Clone for DiscardedOutputStream
Source§fn clone(&self) -> DiscardedOutputStream
fn clone(&self) -> DiscardedOutputStream
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscardedOutputStream
impl Debug for DiscardedOutputStream
Source§impl OutputStream for DiscardedOutputStream
impl OutputStream for DiscardedOutputStream
Source§fn read_chunk_size(&self) -> NumBytes
fn read_chunk_size(&self) -> NumBytes
The maximum size of every chunk read by the backing
stream_reader.Source§fn max_buffered_chunks(&self) -> usize
fn max_buffered_chunks(&self) -> usize
The number of chunks held by the underlying async channel.
Source§impl PartialEq for DiscardedOutputStream
impl PartialEq for DiscardedOutputStream
impl Copy for DiscardedOutputStream
impl Eq for DiscardedOutputStream
impl StructuralPartialEq for DiscardedOutputStream
Auto Trait Implementations§
impl Freeze for DiscardedOutputStream
impl RefUnwindSafe for DiscardedOutputStream
impl Send for DiscardedOutputStream
impl Sync for DiscardedOutputStream
impl Unpin for DiscardedOutputStream
impl UnsafeUnpin for DiscardedOutputStream
impl UnwindSafe for DiscardedOutputStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more