We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db03f63 commit a55bbddCopy full SHA for a55bbdd
crates/rmcp/src/transport/child_process.rs
@@ -48,6 +48,13 @@ pin_project_lite::pin_project! {
48
}
49
50
51
+impl TokioChildProcessOut {
52
+ /// Get the process ID of the child process.
53
+ pub fn id(&self) -> Option<u32> {
54
+ self.child.inner.id()
55
+ }
56
+}
57
+
58
impl AsyncRead for TokioChildProcessOut {
59
fn poll_read(
60
self: std::pin::Pin<&mut Self>,
@@ -77,6 +84,11 @@ impl TokioChildProcess {
77
84
})
78
85
79
86
87
88
89
90
91
80
92
pub fn split(self) -> (TokioChildProcessOut, ChildStdin) {
81
93
let TokioChildProcess {
82
94
child,
0 commit comments