Skip to main content

encode

Function encode 

Source
pub fn encode<T: Serialize + ?Sized>(
    value: &T,
    method: u64,
    direction: Direction,
    limit: usize,
) -> Result<Vec<u8>, Error>
Expand description

Encode a fixed fixture call without growing the frame beyond its allowance.

ยงErrors

Refuses oversized or unrepresentable messages.