Skip to main content

message_from_wire

Function message_from_wire 

Source
pub fn message_from_wire(bytes: &[u8]) -> Option<(String, RuntimeValue)>
Expand description

Decode a wire message (from message_to_wire) into (sender, value), rebuilding the typed value in the local heap. Auto-detects the codec, integrity, and compression; a checksum mismatch, an unknown header, a bad inflate, trailing bytes, or any malformed input all return None — never a panic, never a half-rebuilt value.