Modules§
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates Types that can cross the FFI boundary.
- Reexport items from other uniffi creates Pack UniFFI interface metadata into byte arrays
Macros§
- Reexport items from other uniffi creates Assert that the uniffi runtime version matches an expected value.
- A macro to build testcases for a component’s generated bindings.
- Generate the
FfiConverter
and theUniffiCustomTypeConverter
implementations for a Custom Type - ie, for a<T>
which implementsUniffiCustomTypeConverter
via the newtype idiom. - Generate the
FfiConverter
implementation for a Custom Type - ie, for a<T>
which implementsUniffiCustomTypeConverter
. - Reexport items from other uniffi creates Derive FFI traits
- Reexport items from other uniffi creates Macro to implement
FfiConverterArc<T>
for a UniFfiTag using a different UniFfiTag - Reexport items from other uniffi creates Macro to implement
FfiConverter<T>
for a UniFfiTag using a different UniFfiTag - Reexport items from other uniffi creates Macro to implement lowering/lifting using a
RustBuffer
- A helper macro to generate and include component scaffolding.
- A helper macro to include generated component scaffolding.
- Top-level initialization macro
Structs§
- Reexport items from other uniffi creates Support for reading a slice of foreign-language-allocated bytes over the FFI.
- Reexport items from other uniffi creates Struct to hold a foreign callback.
- Reexport items from other uniffi creates Schedule Rust calls using a foreign executor
- Reexport items from other uniffi creates Opaque handle for a foreign task executor.
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates Support for passing an allocated-by-Rust buffer of bytes over the FFI.
- Reexport items from other uniffi creates Represents the success/error of a rust call
- Reexport items from other uniffi creates Opaque handle for a Rust future that’s stored by the foreign language code
- Reexport items from other uniffi creates Used when internal/unexpected error happened when calling a foreign callback, for example when a unknown exception is raised
Enums§
- Reexport items from other uniffi creates Result of a foreign callback invocation
- Reexport items from other uniffi creates Result code returned by
ForeignExecutorCallback
- Reexport items from other uniffi creates Result of a FFI call to a Rust function
- Reexport items from other uniffi creates Result code for rust_future_poll. This is passed to the continuation function.
- Reexport items from other uniffi creates Passed to a
RustTaskCallback
function when the executor invokes them. - Enumeration of all foreign language targets currently supported by this crate.
Constants§
- Reexport items from other uniffi creates The method index used by the Drop trait to communicate to the foreign language side that Rust has finished with it, and it can be deleted from the handle map.
Traits§
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates Generalized FFI conversions
- Reexport items from other uniffi creates FfiConverter for Arc-types
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates Lift values passed by the foreign code over the FFI into Rust values
- Reexport items from other uniffi creates Lift references
- Reexport items from other uniffi creates Return foreign values to Rust
- Reexport items from other uniffi creates Lower Rust values to pass them to the foreign code
- Reexport items from other uniffi creates Return Rust values to the foreign code
Functions§
- Reexport items from other uniffi creates Check whether the uniffi runtime version is compatible a given uniffi_bindgen version.
- Reexport items from other uniffi creates A helper function to ensure we don’t read past the end of a buffer.
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates Set the global ForeignExecutorCallback. This is called by the foreign bindings, normally during initialization.
- Generate the rust “scaffolding” required to build a uniffi component.
- Like generate_scaffolding, but uses the specified crate_name instead of locating and parsing Cargo.toml.
- Reexport items from other uniffi creates Handle a scaffolding calls
- Reexport items from other uniffi creates Cancel a Rust future
- Reexport items from other uniffi creates Complete a Rust future
- Reexport items from other uniffi creates Free a Rust future, dropping the strong reference and releasing all references held by the future.
- Reexport items from other uniffi creates Create a new RustFutureHandle
- Reexport items from other uniffi creates Poll a Rust future
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates
- Reexport items from other uniffi creates
Type Aliases§
- Reexport items from other uniffi creates ForeignCallback is the Rust representation of a foreign language function. It is the basis for all callbacks interfaces. It is registered exactly once per callback interface, at library start up time. Calling this method is only done by generated objects which mirror callback interfaces objects in the foreign language.
- Reexport items from other uniffi creates Callback to schedule a Rust call with a
ForeignExecutor
. The bindings code registers exactly one of these with the Rust code. - Reexport items from other uniffi creates
Result<T, Error>
- Reexport items from other uniffi creates Foreign callback that’s passed to rust_future_poll
- Reexport items from other uniffi creates Callback for a Rust task, this is what the foreign executor invokes
Attribute Macros§
- A dummy macro that does nothing.