Skip to main content

run_stdio

Function run_stdio 

Source
pub async fn run_stdio<R, W>(
    input: R,
    output: W,
    fault_mode: FaultMode,
    contract_minor: u16,
) -> Result<(), MockAdapterError>
where R: AsyncBufRead + Unpin, W: AsyncWrite + Unpin,
Expand description

Run a mock adapter over JSON lines.

ยงErrors

Returns an error when JSON-lines input/output fails or a command cannot be decoded.