Skip to main content

MAX_CAPACITY

Constant MAX_CAPACITY 

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

The largest buffer a bus sets aside; a larger capacity is lowered to it.

The buffer is allocated in full when the bus is made, so a mistaken capacity would otherwise cost its memory at once, or fail the allocation outright.