pub enum OutputChunk {
Stdout(Vec<u8>),
Stderr(Vec<u8>),
Exit(ExitStatus),
}Expand description
A chunk of output emitted by a guest process.
Variants§
Stdout(Vec<u8>)
Bytes from the process’s stdout (the merged PTY stream for tty sessions).
Stderr(Vec<u8>)
Bytes from the process’s stderr (never emitted for tty sessions).
Exit(ExitStatus)
The process terminated. Always the final chunk of a session.
Trait Implementations§
Source§impl Clone for OutputChunk
impl Clone for OutputChunk
Auto Trait Implementations§
impl Freeze for OutputChunk
impl RefUnwindSafe for OutputChunk
impl Send for OutputChunk
impl Sync for OutputChunk
impl Unpin for OutputChunk
impl UnsafeUnpin for OutputChunk
impl UnwindSafe for OutputChunk
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