Crate argdata[][src]

Please note: This crate is not yet stable. The interface can and will change. Almost nothing is tested yet. Deserialization probably works, but serialization has bugs.

Modules

container_traits

Traits used for Seq and Map value implementations.

env

Access to the program environment.

fd

All the things related to file descriptors.

values

Implementations of specific Argdata types. Use the functions in the root of this crate to create them.

Structs

ArgdataRef

A reference to an argdata value. Either a substring of an encoded argdata value, or just a &Argdata.

IntValue

Represents a signed integer value of any size.

MapIterator

An iterator of a map, returned by Map::iter_map().

SeqIterator

An iterator of a sequence, returned by Seq::iter_seq().

StrValue

Represents a string value.

Timespec

A point in time, relative to the unix epoch.

Enums

NoFit

The reason why an Argdata::read_*() call didn't return a value, when there was no read error.

NotRead

The reason why an Argdata::read_*() call didn't return a value.

ReadError

An error while reading argdata.

Type

The type of an argdata value.

Value

A (borrowed) argdata value.

Traits

Argdata

An argdata value.

ArgdataExt

Extra methods for Argdata values.

Map

An argdata value representing a map.

Seq

An argdata value representing a sequence.

Functions

bigint

Create an argdata value representing an arbitrary length 2's complement integer.

binary

Create an argdata value representing a binary blob.

bool

Create an argdata value representing a boolean.

encoded

Create an argdata value directly from an encoded argdata buffer.

encoded_fd

Create an argdata value representing a file descriptor attached to the data.

encoded_with_fds

Create an argdata value directly from an encoded argdata buffer, which has file descriptors attached.

float

Create an argdata value representing a 64-bit floating point value.

int

Create an argdata value representing an integer (of fixed width, e.g. i32).

invalid_fd

Create an argdata value representing an invalid file descriptor.

map

Create an argdata value representing a map.

null

Create an argdata value representing null.

process_fd

Create an argdata value representing a file descriptor of this process.

seq

Create an argdata value representing a sequence.

str

Create an argdata value representing a string.

timestamp

Create an argdata value representing a point in time.