Struct tokio_unix_ipc::serde::Structural [−][src]
pub struct Structural<T>(pub T);
Expand description
Utility wrapper to force values through structural serialization.
By default tokio-unix-ipc will use
bincode to serialize data across
process boundaries. This has some limitations which can cause
serialization or deserialization to fail for some types.
Since the serde ecosystem has some types which require structural serialization (eg: msgpack, JSON etc.) this type can be used to work around some known bugs:
- serde flatten not being supported: bincode#245
- vectors with unknown length not supported: bincode#167
This requires the serde-structural feature.
Tuple Fields
0: TTrait Implementations
fn deserialize<D>(deserializer: D) -> Result<Structural<T>, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Structural<T>, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more