MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / send_cmd

Method send_cmd

src/executor/shared/fifo.rs:153–161  ·  view source on GitHub ↗
(&mut self, cmd: FifoCommand)

Source from the content-addressed store, hash-verified

151 }
152
153 pub async fn send_cmd(&mut self, cmd: FifoCommand) -> anyhow::Result<()> {
154 let encoded = bincode::serialize(&cmd)?;
155
156 self.ack_fifo
157 .write_all(&(encoded.len() as u32).to_le_bytes())
158 .await?;
159 self.ack_fifo.write_all(&encoded).await?;
160 Ok(())
161 }
162
163 /// Handles all incoming FIFO messages until it's closed, or until the child process exits.
164 ///

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected