MCPcopy Create free account
hub / github.com/TeamPiped/piped-proxy / new

Method new

src/ump_stream.rs:71–78  ·  view source on GitHub ↗
(stream: S)

Source from the content-addressed store, hash-verified

69 S: Stream<Item = Result<Bytes, io::Error>> + Unpin,
70{
71 pub fn new(stream: S) -> Self {
72 UmpTransformStream {
73 inner: stream,
74 buffer: BytesMut::new(),
75 found_stream: false,
76 remaining: 0,
77 }
78 }
79}
80
81impl<S> Stream for UmpTransformStream<S>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected