s2-common 0.31.1

Common stuff for client and servers for S2, the durable streams API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub const MIN_BASIN_NAME_LEN: usize = 8;
pub const MAX_BASIN_NAME_LEN: usize = 48;

pub const MIN_STREAM_NAME_LEN: usize = 1;
pub const MAX_STREAM_NAME_LEN: usize = 512;

pub const MAX_ACCESS_TOKEN_ID_LEN: usize = 96;

/// All record batches in the system are limited to 1000 records.
/// Batches are limited to a collective size of 1 MiB, which is also the maximum size of a single
/// record.
pub const RECORD_BATCH_MAX: crate::read_extent::CountOrBytes = crate::read_extent::CountOrBytes {
    count: 1000,
    bytes: 1024 * 1024,
};