MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / poll_next

Method poll_next

crates/openshell-server/src/test_support.rs:169–175  ·  view source on GitHub ↗
(self: Pin<&mut Self>, cx: &mut Context<'_>)

Source from the content-addressed store, hash-verified

167 type Item = io::Result<UnixStream>;
168
169 fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
170 match self.get_mut().listener.poll_accept(cx) {
171 Poll::Ready(Ok((stream, _addr))) => Poll::Ready(Some(Ok(stream))),
172 Poll::Ready(Err(err)) => Poll::Ready(Some(Err(err))),
173 Poll::Pending => Poll::Pending,
174 }
175 }
176}
177
178#[tonic::async_trait]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected