Skip to content

miniproto_native::mtproto::register

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

Defined in rust/miniproto/src/mtproto.rs:77-81

Adds the Python-visible MTProto envelope functions to miniproto._native.

Returns a Python exception when PyO3 cannot register either callable.

  • m: The Python extension module to receive the envelope callables.