MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / with_inner

Method with_inner

src/pglite/postgres_mod.rs:612–622  ·  view source on GitHub ↗
(
        &self,
        f: impl FnOnce(&mut ProtocolStdioInner) -> io::Result<R>,
    )

Source from the content-addressed store, hash-verified

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
625impl Drop for ProtocolStdioAttachment {

Callers 3

poll_read_readyMethod · 0.80
poll_write_readyMethod · 0.80
poll_readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected