Expand description
Control messages. Every JSON frame is an object with a type field. From protocol 1, every
message after the handshake also carries the id of the request it belongs to (Envelope).
Re-exports§
pub use crate::options::OptionField;
Structs§
- Column
Options - One entry of a
columns:map. - Connection
Field - Delivery
File - One file of a multi-file
deliver. - Envelope
- A message with the id of the request it belongs to. Core numbers its requests; every reply,
and every message streamed as part of a request (
result_set_end,finish,result,result_end,log,progress), carries that request’s id.hellohas none, and neither does anything a protocol 0 peer sends. - Message
- A rendered message, as
delivercarries it. - Result
SetMeta - Per result set, what a format plugin needs to lay it out.
Enums§
- Auto
Width - The word
auto. - Column
Width - A column width: sized from the content, or a number of characters.
- Field
Kind - What a connection field’s value must be.
- LogLevel
- How important a
logmessage is. Core showsinfoand above to the person, and keepsdebugandtracefor-vand the log file. - Request
- Core → plugin.
- Response
- Plugin → core.
Constants§
- ERROR_
KINDS - The kinds an
errorreply may give, from DRE’s error-code registry.