Skip to content

miniproto_native::crypto::register

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

Defined in rust/miniproto/src/crypto.rs:68-88

Registers this module’s fallback-compatible Python callables on miniproto._native.

Returns a PyO3 exception if a callable cannot be added to m.

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