Expand description
Next-generation FIDL Rust bindings library.
Re-exports§
pub use ::fidl_next_protocol as protocol;
Modules§
- decoder
- The core
Decoder
trait. - encoder
- The core
Encoder
trait. - fuchsia
- Fuchsia-specific FIDL extensions.
Macros§
- bitflags
- Generate a flags type.
- 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
Adapter - An adapter for a client protocol handler.
- Client
End - The client end of a protocol.
- Client
Sender - A strongly typed client sender.
- Copy
Optimization - An optimization hint about whether
T
is trivially copyable. - Owned
- An owned value in borrowed backing memory.
- RawWire
Union - A raw FIDL union
- Recv
Future - A future which receives an encoded message over the transport.
- Request
Buffer - A strongly typed receive buffer.
- Responder
- A strongly typed
Responder
. - Response
Buffer - A strongly typed receive buffer.
- Response
Future - A strongly typed response future.
- Send
Future - A future which sends an encoded message over the transport.
- Server
- A strongly typed server.
- Server
Adapter - An adapter for a server protocol handler.
- Server
End - The server end of a protocol.
- Server
Sender - A storngly typed server sender.
- Service
Instance - A strongly typed service instance.
- Slot
- An initialized but potentially invalid 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
- 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.
- Flexible
- A flexible FIDL response.
- Flexible
Result - A flexible FIDL result.
- Framework
Error - An internal framework error.
- Never
- The request or response type of a method which does not have a request or response.
- Protocol
Error - Errors that can be produced by FIDL clients and servers.
Constants§
- CHUNK_
SIZE - FIDL alignment, used for buffer alignment to ensure decoding in-place is possible.
Traits§
- Client
Protocol - A protocol which supports clients.
- Decode
- Decodes a value from the given slot.
- Decoder
- A decoder for FIDL messages.
- Decoder
Ext - Extension methods for
Decoder
. - Discoverable
- A discoverable protocol.
- Encodable
- A type which can be encoded as FIDL.
- Encodable
Option - A type which can be encoded as FIDL when optional.
- Encode
- Encodes a value.
- Encode
Option - Encodes an optional value.
- Encoder
- An encoder for FIDL messages.
- Encoder
Ext - Extension methods for
Encoder
. - Method
- A method of a protocol.
- Server
Protocol - A protocol which supports servers.
- Take
From From
conversions which may take from a reference using interior mutability.- Transport
- A transport layer which can send and receive messages.
- Zero
Padding - Zeroes the padding of this type.
Type Aliases§
- Chunk
- A group of eight bytes, aligned to an 8-byte boundary.
Unions§
- Wire
Envelope - A FIDL envelope
- Wire
Pointer - A raw FIDL pointer