Skip to main content

DEFAULT_RX_BUF_SIZE

Constant DEFAULT_RX_BUF_SIZE 

Source
pub const DEFAULT_RX_BUF_SIZE: usize = 1024; // 1_024usize
Expand description

The configured default receive-buffer size (NROS_SUBSCRIPTION_BUFFER_SIZE).

NOT a fallback for a missing bound any more (phase-403 W0): rx_buffer_for! used to expand to this for an unbounded type and now refuses to compile instead. It stays public, and stays the default, for the paths that have no M to ask rather than a bound they declined to use – create_subscription_raw and the RFC-0043 type-name-string subscriptions, the service / action / TX buffer defaults, the pubsub_entry term of the arena derivation in nros-node/build.rs, and its weld to the C API’s MESSAGE_BUFFER_SIZE. Whether the arena derivation should stop leaning on it is a phase-403 W5 question.

Re-exported here (rather than reached through nros_node) because a macro expands at the CALLER, where nros_node may not be a dependency at all. Default subscription receive buffer size in bytes (set via NROS_SUBSCRIPTION_BUFFER_SIZE, default 1024).