Module kvsd::protocol

source ·
Expand description

protocol module specifies communication between the server and client.

Structs§

  • Key represents a string that meets the specifications of the kvsd protocol. other components can handle Key without checking the length.
  • Value represents binary data given by user. It does not have to be Vec because we do not mutate.

Constants§

  • Maximum number of bytes in Key. if it’s not in ascii, Len is misleading, so using Bytes explicitly.
  • Maximum number of bytes in Value.