pub struct CommandBackend { /* private fields */ }Expand description
A subprocess backend: prompt on stdin, completion on stdout.
Implementations§
Source§impl CommandBackend
impl CommandBackend
pub fn new(argv: Vec<String>, timeout: Duration) -> Self
Sourcepub fn with_cancel(self, flag: Arc<AtomicBool>) -> Self
pub fn with_cancel(self, flag: Arc<AtomicBool>) -> Self
Kill the child as soon as flag is set.
pub fn with_timeout(self, timeout: Duration) -> Self
Sourcepub fn claude_cli() -> Self
pub fn claude_cli() -> Self
The validated default (ADR 0010): headless, text output, tools denied.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandBackend
impl RefUnwindSafe for CommandBackend
impl Send for CommandBackend
impl Sync for CommandBackend
impl Unpin for CommandBackend
impl UnsafeUnpin for CommandBackend
impl UnwindSafe for CommandBackend
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