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§
- generate
macros - Generate bindings for an input WIT document.
Structs§
- AbiBuffer
async - A helper structure used with a stream to handle the canonical ABI representation of lists and track partial writes.
- Future
Read async - Represents a read operation which may be cancelled prior to completion.
- Future
Reader async - Represents the readable end of a Component Model
future<T>. - Future
Write async - Represents a write operation which may be cancelled prior to completion.
- Future
Write Error async - Error type in the result of
FutureWrite, or the error type that is a result of a failure to write a future. - Future
Writer async - Represents the writable end of a Component Model
future. - Stream
Read async - Represents a read operation which may be cancelled prior to completion.
- Stream
Reader async - Represents the readable end of a Component Model
stream. - Stream
Write async - Represents a write operation which may be cancelled prior to completion.
- Stream
Writer async - Represents the writable end of a Component Model
stream.
Enums§
- Future
Write Cancel async - Result of
FutureWrite::cancel. - Stream
Result 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.
- spawn
async-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.