pub struct ChildKiller { /* private fields */ }Expand description
Cloneable handle that can kill a live ClaudeProcess.
Returned by ClaudeProcess::killer. The executor’s timeout
watchdog thread holds one while the main thread drains the parser;
if the deadline elapses before the stream ends, the watchdog calls
ChildKiller::kill and the main thread’s next read_line returns
Ok(0) once the child’s stdout pipe closes.
Implementations§
Source§impl ChildKiller
impl ChildKiller
Sourcepub fn kill(&self) -> Result<()>
pub fn kill(&self) -> Result<()>
Send SIGKILL (or its platform equivalent) to the child if it is
still alive. A no-op once ClaudeProcess::finish has taken
the child out.
Trait Implementations§
Source§impl Clone for ChildKiller
impl Clone for ChildKiller
Source§fn clone(&self) -> ChildKiller
fn clone(&self) -> ChildKiller
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChildKiller
impl RefUnwindSafe for ChildKiller
impl Send for ChildKiller
impl Sync for ChildKiller
impl Unpin for ChildKiller
impl UnsafeUnpin for ChildKiller
impl UnwindSafe for ChildKiller
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more