pub trait StreamOptPreset:
Clone
+ Send
+ Sync
+ 'static {
// Required method
fn stream_opt() -> StreamOpt;
}Expand description
Marker trait for typed stream QoS presets.
Each preset is a zero-sized type that encodes a specific StreamOpt
configuration, enabling type-safe API contracts without runtime dispatch.
Implement this trait to define a new named preset.
Required Methods§
fn stream_opt() -> StreamOpt
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.