Skip to main content

encoded_request_len

Function encoded_request_len 

Source
pub fn encoded_request_len<M: Method>(
    value: &M::Request,
) -> Result<usize, Error>
Expand description

Measure the complete request envelope without allocating an output buffer. Uses the same schema admission as encoding. Custom serializers must be deterministic; sizing does not retain bytes for retries.