Skip to content

miniproto_native::tl::register

fn register(m: &_) -> _
  • m: The Python extension module receiving the TL callables.
fn register(m: &Bound<'_, pyo3::types::PyModule>) -> PyResult<()>

Defined in rust/miniproto/src/tl.rs:102-126

Registers the fallback-compatible tl_* Python functions on miniproto._native.

Returns a PyO3 error if any function cannot be exported.

  • m: The Python extension module receiving the TL callables.