Expand description
Transport-independent accelerator semantics.
This crate does not name virtqueues, guest memory, host operating systems, or vendor APIs. Transport adapters validate untrusted input and translate it into these typed contracts.
Structs§
- Accelerator
Class - Extensible accelerator class. Unknown values remain representable across newer implementations.
- Allocated
Buffer - A newly allocated native buffer handle and its verified backing properties.
- Artifact
Format - Opaque, provider-owned executable format identifier.
- Artifact
Ref - Borrowed program artifact envelope.
- Binding
Ref - One borrowed program binding. The referenced buffer must remain alive until its event is reclaimed.
- Buffer
Desc - Buffer
Info - Verified properties of one provider allocation.
- Buffer
Properties - Properties of the actual provider allocation returned for a
BufferDesc. - Buffer
Range - Buffer
Usage - Capabilities
- Semantic capabilities exposed by a backend, independent of virtio feature negotiation.
- Context
Desc - Context
Flags - Device
Identity - Device
Info - Device
Limits - Queue
Desc - Queue
Flags - Flags for an accelerator execution queue.
- Target
Identity - Opaque target words. Their schema belongs to the artifact format, not this crate.
- Transport
Byte Sink - Zero-copy core byte-sink adapter over a transport-owned writable port.
- Transport
Byte Source - Zero-copy core byte-source adapter over a transport-owned readable port.
Enums§
- Access
Mode - Backend
Error - Device
Info Error - Invalid provider metadata discovered before any resource operation is invoked.
- Event
State - Memory
Domain - Release
Failure - Failure to release a provider handle.
- Submit
Failure - Submission failure that makes the provider acceptance boundary explicit.
- Timeout
- A relative timeout measured from backend admission. Zero on the wire means infinite.
Traits§
- Accelerator
- Native accelerator lifecycle over provider-owned handle types.
- Byte
Sink - A bounded byte destination that may be physically segmented.
- Byte
Source - A bounded byte source that may be physically segmented.
Functions§
- validate_
bindings - Slot/count uniqueness helper for program bindings.