pub struct IoStreams {
pub stdin: Arc<dyn ImmutableRead>,
pub stdout: Arc<dyn ImmutableWrite>,
pub stderr: Arc<dyn ImmutableWrite>,
pub discipline: Option<Arc<LineDiscipline>>,
}
Expand description
Stores the stdio queues and line discipline. The stored queues are for use
by applications e.g. stdin
is a reader. The other end of the queue is held
by the shell.
Fields§
§stdin: Arc<dyn ImmutableRead>
The reader to stdin.
stdout: Arc<dyn ImmutableWrite>
The writer to stdout.
stderr: Arc<dyn ImmutableWrite>
The writer to stderr.
discipline: Option<Arc<LineDiscipline>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IoStreams
impl Send for IoStreams
impl Sync for IoStreams
impl Unpin for IoStreams
impl !UnwindSafe for IoStreams
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