Skip to main content
Module stdio Copy item path Source use crate::cell::Cell ; π use crate::cell::RefCell ; π use crate::fmt ; π use crate::fs::File ; π use crate::io ; π use crate::io::BorrowedCursor ; π Experimental use crate::io::BufReader ; π use crate::io::IoSlice ; π use crate::io::IoSliceMut ; π use crate::io::LineWriter ; π use crate::io::Lines ; π use crate::io::SpecReadByte ; π Experimental use crate::panic::RefUnwindSafe ; π use crate::panic::UnwindSafe ; π use crate::sync::atomic::Atomic ; π Experimental use crate::sync::atomic::AtomicBool ; π use crate::sync::atomic::Ordering ; π use crate::sync::Arc ; π use crate::sync::Mutex ; π use crate::sync::MutexGuard ; π use crate::sync::OnceLock ; π use crate::sync::ReentrantLock ; π Experimental use crate::sync::ReentrantLockGuard ; π Experimental use crate::sys::stdio ; π use crate::thread::AccessError ; π use crate::io::prelude ::*; π impl_is_terminal π Stderr A handle to the standard error stream of a process. StderrLock A locked reference to the Stderr handle. StderrRaw π A handle to a raw instance of the standard output stream of this process. Stdin A handle to the standard input stream of a process. StdinLock A locked reference to the Stdin handle. StdinRaw π A handle to a raw instance of the standard input stream of this process. Stdout A handle to the global standard output stream of the current process. StdoutLock A locked reference to the Stdout handle. StdoutRaw π A handle to a raw instance of the standard output stream of this process. OUTPUT_CAPTURE π Used by the test crate to capture the output of the print macros and panics. OUTPUT_CAPTURE_USED π Flag to indicate OUTPUT_CAPTURE is used. STDOUT π IsTerminal Trait to determine if a descriptor/handle refers to a terminal/tty. attempt_print_to_stderr π Used by impl Termination for Result to print error after main or a test
has returned. Should avoid panicking, although we canβt help it if one of
the Display impls inside args decides to. cleanup π print_to π Writes args to the capture buffer if enabled and possible, or global_s
otherwise. label identifies the stream in a panic message. print_to_buffer_if_capture_used π stderr Constructs a new handle to the standard error of the current process. stdin Constructs a new handle to the standard input of the current process. stdout Constructs a new handle to the standard output of the current process. _eprint π» Experimental _print π» Experimental set_output_capture π» Experimental Sets the thread-local output capture buffer and returns the old one. stderr_raw π Experimental Constructs a new raw handle to the standard error stream of this process. stdin_raw π Experimental Constructs a new raw handle to the standard input of this process. stdout_raw π Experimental Constructs a new raw handle to the standard output stream of this process. try_set_output_capture π» Experimental Tries to set the thread-local output capture buffer and returns the old one.
This may fail once thread-local destructors are called. Itβs used in panic
handling instead of set_output_capture. LocalStream π