Name Description Size Coverage
Async.py Set the event loop to use for async functions This is needed if some async functions run outside of the eventloop, for example: - A non-eventloop thread is spawned, maybe from `EventLoop.run_in_executor` or maybe from the Rust code spawning its own thread. - The Rust code calls an async callback method from a sync callback function, using something like `pollster` to block on the async call. In this case, we need an event loop to run the Python async function, but there's no eventloop set for the thread. Use `uniffi_set_event_loop` to force an eventloop to be used in this case. 5694 -
BoxTemplate.py 403 -
builtins -
CallableArgs.py 379 -
CallableBody.py 2153 -
CallbackInterfaceImpl.py 4337 -
CallbackInterfaceRuntime.py 820 -
CallbackInterfaceTemplate.py 415 -
CustomType.py 2249 -
EnumTemplate.py 8088 -
ErrorTemplate.py 5031 -
HandleMap.py A map where inserting, getting and removing data is synchronized with a lock. 1578 -
Helpers.py Error runtime. 3755 -
InterfaceTemplate.py 5898 -
MapTemplate.py 1203 -
Module.py 1974 -
NamespaceLibraryTemplate.py Function pointer for a Rust task, which a callback function that takes a opaque pointer 3799 -
OptionalTemplate.py 722 -
Protocol.py 572 -
README.md # Rules for the Python template code 848 -
RecordTemplate.py 3027 -
RustBufferHelper.py 1796 -
RustBufferTemplate.py Context-manger to allocate a buffer using a _UniffiRustBufferBuilder. The allocated buffer will be automatically freed if an error occurs, ensuring that we don't accidentally leak it. 7903 -
SequenceTemplate.py 685 -
SetTemplate.py 657 -
TopLevelFunctionTemplate.py 304 -
Types.py 2530 -
UniffiTraitImpls.py 2406 -