pub trait CodecConfig {
const MAX_REQUEST_BYTES: usize;
const MAX_RESPONSE_BYTES: usize;
const DECODE_TIMEOUT: Duration;
}Expand description
Per-protocol codec limits. Implementors set tight values for fixed-shape
protocols (Hello) and generous ones for bulk transfers (ChainExchange).
Required Associated Constants§
const MAX_REQUEST_BYTES: usize
const MAX_RESPONSE_BYTES: usize
Sourceconst DECODE_TIMEOUT: Duration
const DECODE_TIMEOUT: Duration
Aborts the read if the peer hasn’t finished writing within this window.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.