miniproto_native::transport::TransportCodec::feed_transport_data
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/transport.rs - Python exposure:
miniproto._native.TransportCodec.feed_transport_data(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn feed_transport_data(self: &mut Self, py: _, data: &[u8]) -> _Arguments
Section titled “Arguments”py: The acquired GIL token used to build Pythonbytesand integer events.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_transport_data(&mut self, py: Python<'_>, data: &[u8]) -> PyResult<Vec<Py<PyAny>>>Feeds compatibility
feed_transport_data(data)and returns bytes or integer Python events.The GIL token is used only for object conversion after native parsing; malformed framing
returns a Python exception.
Arguments
Section titled “Arguments”-
py: The acquired GIL token used to build Pythonbytesand integer events. -
data: Newly received TCP bytes to append to this codec’s buffered stream.
-