pub struct Limits {
pub max_frame_bytes: usize,
pub max_snapshot_bytes: usize,
pub max_nodes: usize,
pub max_depth: usize,
pub max_string_bytes: usize,
pub max_relation_targets: usize,
pub max_queued_frames: usize,
pub max_pending_waiters: usize,
pub max_sessions: usize,
pub max_log_record_bytes: usize,
pub max_log_queue: usize,
}Expand description
Per-session capacity ceilings, named as they appear on the wire.
limits is the one object on the wire that grows between protocol
versions, so unknown fields are ignored rather than rejected: a client that
refused a ceiling it had never heard of would drop the channel every time
the protocol gained one.
Fields§
§max_frame_bytes: usizePer-frame byte ceiling, header excluded.
max_snapshot_bytes: usizeSerialised size ceiling for one snapshot.
max_nodes: usizeNode and root-id count ceiling per snapshot.
max_depth: usizeStructural nesting ceiling, roots at depth 1.
max_string_bytes: usizeUTF-8 byte ceiling for any single string.
max_relation_targets: usizeCeiling on labelledBy/describedBy/textRanges entries.
max_queued_frames: usizeFrames the driver buffers before applying back-pressure.
max_pending_waiters: usizeConcurrent waiters the driver will track.
max_sessions: usizeConcurrent sessions the driver will hold open.
max_log_record_bytes: usizeByte ceiling for one serialised application log record.
max_log_queue: usizeLog records the driver buffers per session before evicting the oldest.