pub struct Settings {
pub max_streams: u32,
pub max_message_size: u32,
pub timeout_ms: u32,
pub compression: String,
}Expand description
Settings controls transport-level parameters for a NWEP client connection.
All fields have sensible defaults via Settings::default; only override what you need.
Fields§
§max_streams: u32Maximum number of concurrent QUIC streams.
max_message_size: u32Maximum allowed NWEP message body size, in bytes.
timeout_ms: u32QUIC idle timeout in milliseconds, also used as the per-request receive timeout.
If a response is not received within this duration, fetch
returns ERR_NETWORK_TIMEOUT.
compression: StringOptional compression algorithm name (e.g. "zstd"). Empty string means no compression.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more