pub struct Settings {
pub max_streams: u32,
pub max_message_size: u32,
pub timeout_ms: u32,
pub compression: String,
pub role: ServerRole,
}Expand description
Settings controls transport-level parameters for a NWEP server.
All fields have sensible defaults via Settings::default; only override what you need.
Fields§
§max_streams: u32Maximum number of concurrent QUIC streams per connection.
max_message_size: u32Maximum allowed size of a single NWEP message body, in bytes.
timeout_ms: u32QUIC idle timeout in milliseconds.
After this period of inactivity the connection is dropped by the transport layer.
compression: StringOptional compression algorithm name (e.g. "zstd"). Empty string means no compression.
role: ServerRoleRole advertised to connecting peers (e.g. ServerRole::Regular or ServerRole::Bootstrap).
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