Crate fidl_next_codec

Source
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;

Modules§

decoder
The core Decoder trait.
encoder
The core Encoder trait.
fuchsia
Fuchsia-specific extensions to the FIDL codec.

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§

CopyOptimization
An optimization hint about whether T is trivially copyable.
Owned
An owned value in borrowed backing memory.
RawWireUnion
A raw FIDL union
Slot
An initialized but potentially invalid value.
WireBox
A boxed (optional) FIDL value.
WireF32
A wire-encoded f32
WireF64
A wire-encoded f64
WireI16
A wire-encoded i16
WireI32
A wire-encoded i32
WireI64
A wire-encoded i64
WireOptionalString
An optional FIDL string
WireOptionalVector
An optional FIDL vector
WireResult
A FIDL result union.
WireString
A FIDL string
WireTable
A FIDL table
WireU16
A wire-encoded u16
WireU32
A wire-encoded u32
WireU64
A wire-encoded u64
WireVector
A FIDL vector

Enums§

DecodeError
Errors that can be produced when decoding FIDL messages.
EncodeError
Errors that can be produced while encoding FIDL messages.

Constants§

CHUNK_SIZE
FIDL alignment, used for buffer alignment to ensure decoding in-place is possible.

Traits§

Decode
Decodes a value from the given slot.
Encodable
A type which can be encoded as FIDL.
EncodableOption
A type which can be encoded as FIDL when optional.
Encode
Encodes a value.
EncodeOption
Encodes an optional value.
TakeFrom
From conversions which may take from a reference using interior mutability.
ZeroPadding
Zeroes the padding of this type.

Type Aliases§

Chunk
A group of eight bytes, aligned to an 8-byte boundary.

Unions§

WireEnvelope
A FIDL envelope
WirePointer
A raw FIDL pointer