Function hyperion::api::flat::message::hyperion_request_generated::hyperionnet::root_as_request
source · pub fn root_as_request(buf: &[u8]) -> Result<Request<'_>, InvalidFlatbuffer>
Expand description
Verifies that a buffer of bytes contains a Request
and returns it.
Note that verification is still experimental and may not
catch every error, or be maximally performant. For the
previous, unchecked, behavior use
root_as_request_unchecked
.