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