pub struct ShelloutSession { /* private fields */ }Expand description
A live session wrapping a bash driver_invoke child process.
Trait Implementations§
Source§impl Session for ShelloutSession
impl Session for ShelloutSession
Source§fn wait(&mut self) -> Result<i32, LoopError>
fn wait(&mut self) -> Result<i32, LoopError>
Block until the session exits and return its exit code.
Source§fn output_tail(&self) -> Option<String>
fn output_tail(&self) -> Option<String>
Tail of the session’s captured driver output (the
OUTPUT_FILE the bash
driver redirects claude stdout+stderr into), if available. The walk reads
it to classify a non-termination exit: claude’s bg-guard refusal
(“running as a background agent (bg)”) must terminate the unit rather than
be re-dispatched into an infinite respawn loop (x-4504, AC1-ERR). Default
None -> a Session that captures no output is treated as an ordinary
crash and re-dispatched exactly as before.Auto Trait Implementations§
impl Freeze for ShelloutSession
impl RefUnwindSafe for ShelloutSession
impl Send for ShelloutSession
impl Sync for ShelloutSession
impl Unpin for ShelloutSession
impl UnsafeUnpin for ShelloutSession
impl UnwindSafe for ShelloutSession
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