pub trait NetworkOptimizer {
// Required methods
fn optimize(&self) -> Result<()>;
fn description(&self) -> &'static str;
}Expand description
Trait for network optimization strategies
Required Methods§
Sourcefn optimize(&self) -> Result<()>
fn optimize(&self) -> Result<()>
Apply optimizations to improve network performance
§Errors
Returns any socket option error reported by the operating system while applying the optimization strategy.
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a description of the optimization strategy
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".