pub struct StdioSpec { /* private fields */ }Expand description
Portable routing choices for stdin, stdout, and stderr.
Implementations§
Source§impl StdioSpec
impl StdioSpec
Sourcepub const fn new(stdin: StdioMode, stdout: StdioMode, stderr: StdioMode) -> Self
pub const fn new(stdin: StdioMode, stdout: StdioMode, stderr: StdioMode) -> Self
Creates explicit routing choices for all three standard streams.
Sourcepub const fn captured() -> Self
pub const fn captured() -> Self
Creates the non-interactive default: closed stdin and captured output.
Sourcepub const fn with_stdin(self, mode: StdioMode) -> Self
pub const fn with_stdin(self, mode: StdioMode) -> Self
Replaces stdin routing.
Sourcepub const fn with_stdout(self, mode: StdioMode) -> Self
pub const fn with_stdout(self, mode: StdioMode) -> Self
Replaces stdout routing.
Sourcepub const fn with_stderr(self, mode: StdioMode) -> Self
pub const fn with_stderr(self, mode: StdioMode) -> Self
Replaces stderr routing.
Trait Implementations§
impl Copy for StdioSpec
impl Eq for StdioSpec
impl StructuralPartialEq for StdioSpec
Auto Trait Implementations§
impl Freeze for StdioSpec
impl RefUnwindSafe for StdioSpec
impl Send for StdioSpec
impl Sync for StdioSpec
impl Unpin for StdioSpec
impl UnsafeUnpin for StdioSpec
impl UnwindSafe for StdioSpec
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