Skip to main content

DEFAULT_RECORD_ITEM_LIMIT

Constant DEFAULT_RECORD_ITEM_LIMIT 

Source
pub const DEFAULT_RECORD_ITEM_LIMIT: usize = _; // 1_048_576usize
Expand description

Default ceiling on the packets captured by the unbounded recorders.

record_bang and record_cassette_bang drain a source to done; a live or unbounded source never reaches done, so they cap capture at this many packets and error rather than looping forever. Use record_bang_bounded / record_cassette_bang_bounded to choose an explicit bound for a source that may not terminate.