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

Method send_cmd

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

Source from the content-addressed store, hash-verified

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

Callers 1

handle_fifo_messagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected