(
&self,
f: impl FnOnce(&mut ProtocolStdioInner) -> io::Result<R>,
)
| 610 | } |
| 611 | |
| 612 | fn with_inner<R>( |
| 613 | &self, |
| 614 | f: impl FnOnce(&mut ProtocolStdioInner) -> io::Result<R>, |
| 615 | ) -> io::Result<R> { |
| 616 | let mut guard = self |
| 617 | .state |
| 618 | .inner |
| 619 | .lock() |
| 620 | .map_err(|_| io::Error::other("protocol stdio lock poisoned"))?; |
| 621 | f(&mut guard) |
| 622 | } |
| 623 | } |
| 624 | |
| 625 | impl Drop for ProtocolStdioAttachment { |
no outgoing calls
no test coverage detected