| 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.
|
5686 |
- |
| builtins |
|
|
- |
| CallableArgs.py |
|
377 |
- |
| CallableBody.py |
|
2273 |
- |
| CallbackInterfaceImpl.py |
|
4335 |
- |
| CallbackInterfaceRuntime.py |
|
820 |
- |
| CallbackInterfaceTemplate.py |
|
415 |
- |
| CustomType.py |
|
1997 |
- |
| EnumTemplate.py |
|
8079 |
- |
| ErrorTemplate.py |
|
5025 |
- |
| HandleMap.py |
A map where inserting, getting and removing data is synchronized with a lock.
|
1578 |
- |
| Helpers.py |
Error runtime.
|
3743 |
- |
| InterfaceTemplate.py |
|
6062 |
- |
| 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 |
|
570 |
- |
| README.md |
# Rules for the Python template code |
848 |
- |
| RecordTemplate.py |
|
3020 |
- |
| 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.
|
6139 |
- |
| SequenceTemplate.py |
|
685 |
- |
| TopLevelFunctionTemplate.py |
|
302 |
- |
| Types.py |
|
2389 |
- |
| UniffiTraitImpls.py |
|
2406 |
- |