Module serialize_proto

Module serialize_proto 

Source
Expand description

Protobuf serialization of guest commands and responses. Protobuf serialization of TDISP guest-to-host commands and responses using the types defined in [tdisp_proto].

Functionsยง

deserialize_command
Deserialize a GuestToHostCommand from a protobuf-encoded byte slice.
deserialize_response
Deserialize a GuestToHostResponse from a protobuf-encoded byte slice.
serialize_command
Serialize a GuestToHostCommand to a protobuf-encoded byte vector.
serialize_response
Serialize a GuestToHostResponse to a protobuf-encoded byte vector.
validate_command
Validate the invariants of a GuestToHostCommand to ensure that it matches the expected required protocol format.
validate_response
Validate the invariants of a GuestToHostResponse to ensure that it matches the expected required protocol format.