pub fn get_python_message_bus(
wrapper: &Bound<'_, PyAny>,
) -> PyResult<Rc<PyMessageBusScope>>Expand description
Returns message state owned by the receiver’s registered runtime thread.
Inspect the unborrowed Python receiver: PyO3’s unsendable borrow check panics on a foreign thread. The state is shared separately so lifecycle callbacks do not re-borrow their component.
§Errors
Returns a runtime error when this thread does not retain the wrapper.