Expand description
Next-generation FIDL Rust bindings library.
Re-exports§
pub use self::decoder::Decoder;
pub use self::decoder::DecoderExt;
pub use self::encoder::Encoder;
pub use self::encoder::EncoderExt;
pub use self::fuchsia::*;
Modules§
- Typed wrappers for the basic protocol types.
- The core
Decoder
trait. - The core
Encoder
trait. - Fuchsia-specific FIDL extensions.
- FIDL protocols.
Macros§
- Generate a flags type.
- Destructures a type into
Structs§
- An owned value in borrowed backing memory.
- A raw FIDL union
- An initialized but potentially invalid value.
- A boxed (optional) FIDL value.
- An internal framework error.
- An optional FIDL string
- An optional FIDL vector
- A FIDL string
- A FIDL table
- A FIDL vector
- A little-endian
f32
with a guaranteed size and alignment of4
. - A little-endian
f64
with a guaranteed size and alignment of8
. - A little-endian
i16
with a guaranteed size and alignment of2
. - A little-endian
i32
with a guaranteed size and alignment of4
. - A little-endian
i64
with a guaranteed size and alignment of8
. - A little-endian
u16
with a guaranteed size and alignment of2
. - A little-endian
u32
with a guaranteed size and alignment of4
. - A little-endian
u64
with a guaranteed size and alignment of8
.
Enums§
- Errors that can be produced when decoding FIDL messages.
- Errors that can be produced while encoding FIDL messages.
- An internal framework error.
Constants§
- FIDL alignment, used for buffer alignment to ensure decoding in-place is possible.
Traits§
- Decodes a value from the given slot.
- A type which can be encoded as FIDL.
- A type which can be encoded as FIDL when optional.
- Encodes a value.
- Encodes an optional value.
- Types for which any bit pattern is valid.
- Types that can be converted to an immutable slice of initialized bytes.
From
conversions which take from a mutable reference.
Type Aliases§
- A group of eight bytes, aligned to an 8-byte boundary.
Unions§
- A FIDL envelope
- A raw FIDL pointer