Skip to content

miniproto_native::transport::TransportCodec::feed_transport_data

  • 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)
fn feed_transport_data(self: &mut Self, py: _, data: &[u8]) -> _
  • py: The acquired GIL token used to build Python bytes and integer events.
  • data: Newly received TCP bytes to append to this codec’s buffered stream.
  • 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.

    • py: The acquired GIL token used to build Python bytes and integer events.

    • data: Newly received TCP bytes to append to this codec’s buffered stream.