miniproto_native::transport::TransportCodec::feed_data
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/transport.rs - Python exposure:
miniproto._native.TransportCodec.feed_data(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn feed_data(self: &mut Self, data: &[u8]) -> _Arguments
Section titled “Arguments”data: Newly received TCP bytes to append to this codec’s buffered stream.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”-
fn feed_data(&mut self, data: &[u8]) -> PyResult<Vec<(u8, Vec<u8>, i64, bool)>>Feeds Python
feed_data(data)and returns tagged native event tuples.Tuple kinds are
0payload,1quick ACK, and2negative transport error. It preservesincomplete trailing bytes for the next call and raises Python errors for invalid framing.
Arguments
Section titled “Arguments”data: Newly received TCP bytes to append to this codec’s buffered stream.