pub struct IoContext {
pub stdin: Box<dyn Read + Send>,
pub stdout: Box<dyn Write + Send>,
pub stderr: Box<dyn Write + Send>,
pub cancel_token: CancellationToken,
}Expand description
Context for utility IO, allowing redirection of stdin, stdout, and stderr.
Fields§
§stdin: Box<dyn Read + Send>§stdout: Box<dyn Write + Send>§stderr: Box<dyn Write + Send>§cancel_token: CancellationTokenImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IoContext
impl !Sync for IoContext
impl !UnwindSafe for IoContext
impl Freeze for IoContext
impl Send for IoContext
impl Unpin for IoContext
impl UnsafeUnpin for IoContext
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