Function honk_rpc::honk_rpc::get_error_section_size

source ยท
pub fn get_error_section_size(
    cookie: Option<RequestCookie>,
    message: Option<String>,
    data: Option<Bson>,
) -> Result<usize, Error>
Expand description

Computes the required size of a Honk-RPC error section in bytes.

Returns the size of the BSON-encoded error section. If BSON encoding fails, an Error::BsonWriteFailed is returned.