pub struct GrokServeOptions {
pub port: Option<u16>,
pub secret: String,
pub grok_bin: PathBuf,
pub ready_timeout: Duration,
pub log_path: Option<PathBuf>,
}Expand description
How to launch a local Grok Build agent server.
Fields§
§port: Option<u16>Loopback bind port. When None, an ephemeral free port is chosen.
secret: StringWebSocket server secret (also used as server-key query param).
grok_bin: PathBufBinary name or path (grok on PATH by default).
ready_timeout: DurationMax time to wait for the listener after spawn.
log_path: Option<PathBuf>Optional log file for child stdout/stderr (parent dirs created).
Trait Implementations§
Source§impl Clone for GrokServeOptions
impl Clone for GrokServeOptions
Source§fn clone(&self) -> GrokServeOptions
fn clone(&self) -> GrokServeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrokServeOptions
impl Debug for GrokServeOptions
Auto Trait Implementations§
impl Freeze for GrokServeOptions
impl RefUnwindSafe for GrokServeOptions
impl Send for GrokServeOptions
impl Sync for GrokServeOptions
impl Unpin for GrokServeOptions
impl UnsafeUnpin for GrokServeOptions
impl UnwindSafe for GrokServeOptions
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