pub struct ManagedGrokServe { /* private fields */ }Expand description
Owned Grok serve child process.
Dropping the handle (or calling ManagedGrokServe::stop) terminates the
child. No fire-and-forget: the driver always owns cleanup.
Implementations§
Source§impl ManagedGrokServe
impl ManagedGrokServe
Sourcepub async fn start(opts: GrokServeOptions) -> Result<Self, String>
pub async fn start(opts: GrokServeOptions) -> Result<Self, String>
Spawn grok agent --always-approve serve and wait until the port listens.
Trait Implementations§
Source§impl Debug for ManagedGrokServe
impl Debug for ManagedGrokServe
Source§impl Drop for ManagedGrokServe
impl Drop for ManagedGrokServe
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedGrokServe
impl !UnwindSafe for ManagedGrokServe
impl Freeze for ManagedGrokServe
impl Send for ManagedGrokServe
impl Sync for ManagedGrokServe
impl Unpin for ManagedGrokServe
impl UnsafeUnpin for ManagedGrokServe
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