Name Description Size
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. 4693
BooleanHelper.py 410
BytesHelper.py 572
CallbackInterfaceImpl.py 3998
CallbackInterfaceRuntime.py 820
CallbackInterfaceTemplate.py 607
CustomType.py 1733
DurationHelper.py 897
EnumTemplate.py 5919
ErrorTemplate.py 4487
ExternalTemplate.py 885
Float32Helper.py 207
Float64Helper.py 210
HandleMap.py A map where inserting, getting and removing data is synchronized with a lock. 941
Helpers.py Error runtime. 3702
Int8Helper.py 264
Int16Helper.py 270
Int32Helper.py 270
Int64Helper.py 270
macros.py 5682
MapTemplate.py 1258
NamespaceLibraryTemplate.py Function pointer for a Rust task, which a callback function that takes a opaque pointer 3767
ObjectTemplate.py 7251
OptionalTemplate.py 745
Protocol.py 437
README.md # Rules for the Python template code 848
RecordTemplate.py 2278
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. 6135
SequenceTemplate.py 708
StringHelper.py 966
TimestampHelper.py 1540
TopLevelFunctionTemplate.py 1483
Types.py 3209
UInt8Helper.py 261
UInt16Helper.py 266
UInt32Helper.py 266
UInt64Helper.py 266
wrapper.py 2252