pub trait DriverConfig: Sized + Copy {
// Required methods
fn for_profile<P: Profile>() -> Self;
fn for_tcp_profile(
ring_entries: u32,
max_conn: usize,
ingress_buf_cap: usize,
) -> Self;
fn for_quic_udp(provided_buf_entries: u32, provided_buf_len: u32) -> Self;
// Provided methods
fn with_defer_taskrun(self, _enable: bool) -> Self { ... }
fn with_cpu_id(self, _cpu: Option<u16>) -> Self { ... }
}Required Methods§
fn for_profile<P: Profile>() -> Self
fn for_tcp_profile( ring_entries: u32, max_conn: usize, ingress_buf_cap: usize, ) -> Self
fn for_quic_udp(provided_buf_entries: u32, provided_buf_len: u32) -> Self
Provided Methods§
fn with_defer_taskrun(self, _enable: bool) -> Self
fn with_cpu_id(self, _cpu: Option<u16>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".