pub enum SessionOutput {
Stdout(Vec<u8>),
Stderr(Vec<u8>),
Exited(i32),
Raw(Vec<u8>),
}Expand description
Output from a session that the agent loop should forward to the host.
Variants§
Stdout(Vec<u8>)
Data from stdout (or PTY master).
Stderr(Vec<u8>)
Data from stderr (pipe mode only).
Exited(i32)
The process has exited with the given code.
Raw(Vec<u8>)
Pre-encoded frame bytes to write directly to the serial output buffer.
Used by filesystem streaming operations that encode their own
FsData/FsResponse messages.
Auto Trait Implementations§
impl Freeze for SessionOutput
impl RefUnwindSafe for SessionOutput
impl Send for SessionOutput
impl Sync for SessionOutput
impl Unpin for SessionOutput
impl UnsafeUnpin for SessionOutput
impl UnwindSafe for SessionOutput
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