Expand description
Next-generation FIDL Rust bindings library.
Re-exports§
pub use ::fidl_next_protocol as protocol;
Modules§
- bitflags
- Generate types for C-style flags with ergonomic APIs.
- decoder
- The core
Decodertrait. - encoder
- The core
Encodertrait. - fuchsia
- Fuchsia-specific FIDL extensions.
- fuchsia_
async - FIDL bindings integration with fuchsia-async.
- util
- Helper types for encoding and decoding.
Macros§
- chunks
- Returns a slice of chunks with the same bytewise value as the given bytes.
- munge
- Destructures a type into
Structs§
- Client
- A strongly typed client.
- Client
Dispatcher - A strongly typed client dispatcher.
- Client
End - The client end of a protocol.
- Client
Handler Adapter - An adapter for a client protocol handler.
- Copy
Optimization - An optimization hint about whether the conversion from
TtoUis equivalent to copying the raw bytes ofT. - Decoded
- A decoded value and the decoder which contains it.
- Encoded
Respond Future - An encoded
RespondFuture. - Encoded
Send Future - An encoded
SendFuture. - Encoded
TwoWay Future - A future which performs a two-way FIDL method call.
- Ignore
Events - A handler which ignores incoming events.
- Into
Iter - An iterator over the items of a
WireVector. - RawWire
Union - A raw FIDL union
- Recv
Buffer TwoWay Future - A future which receives a two-way FIDL method call as a
RecvBuffer. - Request
- A received FIDL message that will be handled by a client or server handler.
- Respond
Future - A future which responds to a request with an encoded message.
- Responder
- A strongly typed
Responder. - Send
Future - A future which sends an encoded message to a connection.
- Send
TwoWay Future - A future which sends a two-way FIDL method call.
- Sent
TwoWay Future - A future which performs a two-way FIDL method call.
- Server
- A strongly typed server.
- Server
Dispatcher - A strongly typed server.
- Server
End - The server end of a protocol.
- Server
Handler Adapter - An adapter for a server protocol handler.
- Service
Connector - A strongly-typed member connector for a FIDL service.
- Service
Handler Adapter - An adapter for a FIDL service handler.
- Slot
- An initialized but potentially invalid value.
- TwoWay
Future - A future which performs a two-way FIDL method call.
- Unknown
Strict Enum Member Error - Error returned by TryFrom on a strict enum if none of the members match the supplied value.
- WireBox
- A boxed (optional) FIDL value.
- WireF32
- A wire-encoded
f32 - WireF64
- A wire-encoded
f64 - Wire
Flexible - A flexible FIDL response.
- Wire
Flexible Result - A flexible FIDL result.
- Wire
Framework Error - An internal framework error.
- WireI16
- A wire-encoded
i16 - WireI32
- A wire-encoded
i32 - WireI64
- A wire-encoded
i64 - Wire
Optional String - An optional FIDL string
- Wire
Optional Vector - An optional FIDL vector
- Wire
Result - A FIDL result union.
- Wire
String - A FIDL string
- Wire
Table - A FIDL table
- Wire
TwoWay Future - A future which decodes a two-way FIDL method call as a wire type.
- WireU16
- A wire-encoded
u16 - WireU32
- A wire-encoded
u32 - WireU64
- A wire-encoded
u64 - Wire
Vector - A FIDL vector
Enums§
- Decode
Error - Errors that can be produced when decoding FIDL messages.
- Encode
Error - Errors that can be produced while encoding FIDL messages.
- Error
- An encoding, decoding, or transport FIDL error.
- Flexible
- A flexible FIDL response.
- Flexible
Result - A flexible FIDL result.
- Framework
Error - An internal framework error.
- Protocol
Error - Errors that can be produced by FIDL clients and servers.
- Validation
Error - Errors that can be produced when validating FIDL messages.
- Wire
Empty Struct Placeholder - An empty struct’s wire representation. C/C++ memory layout rules (and hence FIDL wire rules) require every object to have a unique address so we have to make a single, tiny type for empty structs.
Constants§
- CHUNK_
SIZE - FIDL alignment, used for buffer alignment to ensure decoding in-place is possible.
Traits§
- Client
Compat From - Conversions between old and new Rust protocol bindings.
- Client
Handler - A type which handles incoming events for a client.
- Compat
From - Conversions between old and new Rust bindings types.
- Constrained
- Implemented by types that have constraints that can be validated.
- Decode
- Decodes a value from the given slot.
- Decoder
- A decoder for FIDL messages.
- Decoder
Ext - Extension methods for
Decoder. - Discoverable
- A discoverable FIDL protocol.
- Discoverable
Service - A discoverable service.
- Dispatch
Client Message - A protocol which dispatches incoming client messages to a handler.
- Dispatch
Server Message - A protocol which dispatches incoming server messages to a handler.
- Dispatch
Service Handler - A service which dispatches incoming connections to a handler.
- Encode
- Encodes a value.
- Encode
Option - Encodes an optional value.
- Encoder
- An encoder for FIDL messages.
- Encoder
Ext - Extension methods for
Encoder. - Executor
- An executor which futures can be spawned on.
- From
Wire - A type which is convertible from a wire type.
- From
Wire Option - An optional type which is convertible from a wire type.
- From
Wire Option Ref - An optional type which is convertible from a reference to a wire type.
- From
Wire Ref - A type which is convertible from a reference to a wire type.
- HasConnection
Handles - A FIDL protocol which has associated connection handles.
- HasExecutor
- A transport which has an executor to spawn on.
- HasService
Request - A trait indicating that a service has members of the given type.
- HasTransport
- A protocol which has a default transport type.
- Instance
From Service Transport - A trait that can be implemented to transform service instance transport handles from their parent server’s transport handles.
- Into
Natural - Associates a good default type for a wire type to convert into.
- Method
- A method of a protocol.
- Respond
- A method which can be responded to with a single value.
- Respond
Err - A method which can be responded
Errto with a single value. - Runs
Transport - Identifies an executor as being able to run a transport.
- Server
Handler - A type which handles incoming events for a server.
- Service
- A FIDL service.
- Transport
- A transport layer which can send and receive messages.
- TwoWay
Method - A protocol method which has a response.
- Unconstrained
- Implemented by types that can’t have constraints.
- Wire
- A FIDL wire type.
Type Aliases§
- Chunk
- A group of eight bytes, aligned to an 8-byte boundary.
- Handler
Task - A client or server handler task.
Unions§
- Wire
Envelope - A FIDL envelope
- Wire
Pointer - A raw FIDL pointer