pub struct HelperProcess { /* private fields */ }Implementations§
Source§impl HelperProcess
impl HelperProcess
pub fn new(cfg: HelperConfig) -> Self
Sourcepub fn spawn_count(&self) -> u64
pub fn spawn_count(&self) -> u64
How many helper processes were started (observability and tests).
Sourcepub fn call(
&self,
cmd: &str,
params: Map<String, Value>,
) -> SyncResult<Response>
pub fn call( &self, cmd: &str, params: Map<String, Value>, ) -> SyncResult<Response>
One request, one response. Transport-level failures (spawn, write,
timeout, EOF, malformed line) kill the helper and surface as retryable
errors; helper-reported errors come back as Ok(Response{ok:false})
mapped by the caller.
Trait Implementations§
Source§impl Drop for HelperProcess
impl Drop for HelperProcess
Auto Trait Implementations§
impl !Freeze for HelperProcess
impl RefUnwindSafe for HelperProcess
impl Send for HelperProcess
impl Sync for HelperProcess
impl Unpin for HelperProcess
impl UnsafeUnpin for HelperProcess
impl UnwindSafe for HelperProcess
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