#[derive(Debug, Clone)]
pub struct Limits {
pub max_frame_size: usize,
pub max_open_streams: usize,
pub max_inbound_connection_bytes: usize,
pub max_outbound_connection_bytes: usize,
pub max_inbound_stream_bytes: usize,
pub max_outbound_stream_bytes: usize,
}
impl Default for Limits {
fn default() -> Self {
Self {
max_frame_size: 64 * 1024,
max_open_streams: 128,
max_inbound_connection_bytes: 4 * 1024 * 1024,
max_outbound_connection_bytes: 4 * 1024 * 1024,
max_inbound_stream_bytes: 256 * 1024,
max_outbound_stream_bytes: 256 * 1024,
}
}
}