Skip to main content

encoded_response_len

Function encoded_response_len 

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

Measure the complete response envelope without allocating an output buffer. Consumers can compare this with a delivery allowance before encoding. Schema admission still applies to the entire type, not just this value.