Skip to main content

encode

Function encode 

Source
pub fn encode(envelope: &Envelope) -> Result<Vec<u8>, MeshError>
Expand description

Encode an envelope for the wire. An envelope that does not fit MAX_DATAGRAM is an error at the sender — the receiver’s bound must never be the first place it is felt.