MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / parse

Method parse

api_client/src/lib.rs:62–66  ·  view source on GitHub ↗
(code: &str)

Source from the content-addressed store, hash-verified

60 }
61
62 fn parse(code: &str) -> Result<StatusCode, Error> {
63 Ok(StatusCode::from_raw(
64 code.trim().parse().map_err(Error::StatusCodeParsing)?,
65 ))
66 }
67
68 fn is_server_error(self) -> bool {
69 !matches!(

Callers 2

get_cache_sizeFunction · 0.45
parse_http_responseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected