pub fn encode_metadata(metadata: &Metadata) -> Result<Vec<u8>>
Encodes metadata for a shared-memory slot’s metadata region.
NodeError::Wire when the metadata cannot be encoded.
NodeError::Wire