Module serde

Source
Expand description

This module provides extensions to serde for IPC.

This crate uses serde for serialization of data across the process boundary. Internally this uses bincode as transfer format. File handles can also be serialized by using Handle and HandleRef.

Because bincode has various limitations in the structures that can be serialized, the Structural wrapper is available which forces structural serialization (currently uses msgpack). This requires the serde-structural feature.

Structs§

Handle
Can transfer a unix file handle across processes.
HandleRef
A raw reference to a handle.
Structural
Utility wrapper to force values through structural serialization.

Functions§

deserialize
Deserializes something for IPC communication.
is_ipc_mode
Checks if serde is in IPC mode.
serialize
Serializes something for IPC communication.