jsonrpsee_server::helpers

Function prepare_error

source
pub fn prepare_error(data: &[u8]) -> (Id<'_>, ErrorCode)
Expand description

Figure out if this is a sufficiently complete request that we can extract an Id out of, or just plain unparseable garbage.