pub struct Config {
pub ring_entries: u32,
pub cq_entries: u32,
pub fixed_file_slots: u32,
pub accept_slots: u32,
pub provided: ProvidedBufferConfig,
pub defer_taskrun: bool,
pub ready_slots: usize,
}Fields§
§ring_entries: u32§cq_entries: u32§fixed_file_slots: u32§accept_slots: u32§provided: ProvidedBufferConfig§defer_taskrun: bool§ready_slots: usizeImplementations§
Source§impl Config
impl Config
pub fn fixed_file_slots(&self) -> u32
pub fn for_profile<P: DriverProfile>() -> Self
pub fn for_tcp_profile<P: DriverProfile>(max_connections: usize) -> Self
pub fn for_quic_udp(provided_buf_entries: u32, provided_buf_len: u32) -> Self
pub fn with_provided(self, len: usize, entries: u16) -> Self
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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