pgwire

Module pg_message

source

Macrosยง

Structsยง

Enumsยง

Traitsยง

Functionsยง

  • Continue read until reached a \0. Used in reading string from Bytes.
  • write_body ๐Ÿ”’
    Call f() to write body of the message and prepend it with 4-byte len as prescribed by the protocol. First write out body value and fill length value as i32 in front of it.
  • write_cstr ๐Ÿ”’
    Safe write of s into buf as cstring (String in the protocol).
  • Safe write error or notice message.