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.
- wire
- FIDL wire type definitions and implementations.
Macros§
- chunks
- Returns an array of chunks with the same bytewise value as the given bytes.
- munge
- Destructures a type into
Structs§
- Body
- The body of an encoded FIDL message.
- 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.
- 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.
- Wire
TwoWay Future - A future which decodes a two-way FIDL method call as a wire type.
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.
Constants§
- CHUNK_
SIZE - FIDL alignment, used for buffer alignment to ensure decoding in-place is possible.
Traits§
- AsDecoder
- A type that can be borrowed as a decoder.
- AsDecoder
Ext - Extension methods for
AsDecoder. - 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 an owned value.
- From
Wire Option - An optional type which is convertible from an owned value.
- From
Wire Option Ref - An optional type which is convertible from a reference.
- From
Wire Ref - A type which is convertible from a reference.
- 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 backend which can send and receive messages.
- TwoWay
Method - A protocol method which has a response.
- Wire
- A FIDL wire type.
Type Aliases§
- Chunk
- A group of eight bytes, aligned to an 8-byte boundary.
- Handler
Join Handle - A client or server handler join handle.