Expand description
Bindings generation support for Rust with the Component Model.
This crate is a bindings generator for WIT and the Component Model.
Users are likely interested in the generate! macro which actually
generates bindings. Otherwise this crate provides any runtime support
necessary for the macro-generated code.
Modules§
Macros§
- generatemacros
- Generate bindings for an input WIT document.
Structs§
- AbiBufferasync
- A helper structure used with a stream to handle the canonical ABI representation of lists and track partial writes.
- FutureRead async
- Represents a read operation which may be cancelled prior to completion.
- FutureReader async
- Represents the readable end of a Component Model future<T>.
- FutureWrite async
- Represents a write operation which may be cancelled prior to completion.
- FutureWrite Error async
- Error type in the result of FutureWrite, or the error type that is a result of a failure to write a future.
- FutureWriter async
- Represents the writable end of a Component Model future.
- StreamRead async
- Represents a read operation which may be cancelled prior to completion.
- StreamReader async
- Represents the readable end of a Component Model stream.
- StreamWrite async
- Represents a write operation which may be cancelled prior to completion.
- StreamWriter async
- Represents the writable end of a Component Model stream.
Enums§
- FutureWrite Cancel async
- Result of FutureWrite::cancel.
- StreamResult async
- Result of a StreamWriter::writeorStreamReader::readoperation, yielded by theStreamWriteorStreamReadfutures.
Functions§
- backpressure_dec async
- Call the backpressure.deccanonical built-in function.
- backpressure_inc async
- Call the backpressure.inccanonical built-in function.
- backpressure_set Deprecated async
- Call the backpressure.setcanonical built-in function.
- block_on async
- Run the specified future to completion, returning the result.
- spawnasync-spawn
- Spawn the provided futureto get executed concurrently with the currently-running async computation.
- yield_async async
- The asynchronous counterpart to yield_blocking.
- yield_blocking async
- Call the yieldcanonical built-in function.