pub fn parse_bson_request(buf: &[u8]) -> Result<ParsedRequest, String>Expand description
Parse a bson request document from buf. buf may be longer than the
document (stdin may carry trailing bytes); only the leading document
(delimited by its int32 length) is consumed. Returns the query and an
optional limit.