Skip to main content

DriverConfig

Trait DriverConfig 

Source
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§

Source

fn for_profile<P: Profile>() -> Self

Source

fn for_tcp_profile( ring_entries: u32, max_conn: usize, ingress_buf_cap: usize, ) -> Self

Source

fn for_quic_udp(provided_buf_entries: u32, provided_buf_len: u32) -> Self

Provided Methods§

Source

fn with_defer_taskrun(self, _enable: bool) -> Self

Source

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", so this trait is not object safe.

Implementors§