(ctl_fifo: &Path, ack_fifo: &Path)
| 34 | |
| 35 | impl GenericFifo { |
| 36 | pub fn new(ctl_fifo: &Path, ack_fifo: &Path) -> anyhow::Result<Self> { |
| 37 | create_fifo(ctl_fifo)?; |
| 38 | create_fifo(ack_fifo)?; |
| 39 | |
| 40 | let ctl_sender = open_fifo_sender(ctl_fifo)?; |
| 41 | let ack_reader = open_fifo_receiver(ack_fifo)?; |
| 42 | |
| 43 | Ok(Self { |
| 44 | ctl_path: ctl_fifo.to_path_buf(), |
| 45 | ack_path: ack_fifo.to_path_buf(), |
| 46 | ctl_sender, |
| 47 | ack_reader, |
| 48 | }) |
| 49 | } |
| 50 | |
| 51 | pub fn ctl_sender(&mut self) -> &mut TokioPipeSender { |
| 52 | &mut self.ctl_sender |
nothing calls this directly
no test coverage detected