Skip to main content

encode

Function encode 

Source
pub fn encode(tag: BackendTag, payload: &HandlePayload) -> HandleOpaque
Expand description

Encode a HandlePayload into a HandleOpaque tagged with tag. Produces a v2 buffer — callers decoding via decode always get the tag they encoded.