pub struct ReactorConfig {
pub max_events: usize,
pub prefer_io_uring: bool,
}Expand description
Reactor configuration
Fields§
§max_events: usizeMaximum number of events to return per poll
prefer_io_uring: boolWhether to prefer io_uring on Linux (if available)
Trait Implementations§
Source§impl Clone for ReactorConfig
impl Clone for ReactorConfig
Source§fn clone(&self) -> ReactorConfig
fn clone(&self) -> ReactorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReactorConfig
impl Debug for ReactorConfig
Auto Trait Implementations§
impl Freeze for ReactorConfig
impl RefUnwindSafe for ReactorConfig
impl Send for ReactorConfig
impl Sync for ReactorConfig
impl Unpin for ReactorConfig
impl UnsafeUnpin for ReactorConfig
impl UnwindSafe for ReactorConfig
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