Module encode

Source
Expand description

Encoding diagnostic records using the Fuchsia Tracing format.

Structs§

Encoder
An Encoder wraps any value implementing MutableBuffer and writes diagnostic stream records into it.
EncoderOpts
Options for the encoder
ResizableBuffer
Wrapper for a vector that allows us to implement necessary traits.
TestRecord
Arguments to create a record for testing purposes.
WriteEventParams
Parameters for Encoder/write_event.
WriteSlot
A region of the buffer which was advanced past and can later be filled in.

Enums§

EncodingError
An error that occurred while encoding data to the stream format.

Traits§

MutableBuffer
Analogous to bytes::BufMut with some additions to be able to write at specific offsets.
RecordEvent
Trait implemented by types which can be written by the Encoder.
RecordFields
Trait implemented by complete Records.
WriteArgumentValue
Trait implemented by types which can be written to the encoder.