Method
send_cmd
(&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
Tested by
no test coverage detected