pub struct NucleiConfig {
pub iouring: IoUringConfiguration,
pub backend: Option<IoBackend>,
}Expand description
Nuclei’s proactor configuration: the io_uring settings of every shard, and
the backend of every runtime that names none. It is set once, before any
IO, with Proactor::with_config; a
runtime with io_uring settings of its own takes them from
Builder::io_uring instead.
Fields§
§iouring: IoUringConfigurationThe settings every shard’s io_uring ring is made with.
backend: Option<IoBackend>The kernel interface every runtime that names none runs its IO on
(Builder::backend names one for one
runtime). None (the default) picks io_uring where the kernel lets
this process have it, and the platform’s poller otherwise. Having it
means every kernel feature a shard’s ring needs with this
configuration: the buffer ring for multishot receives while
recv_buffers is not 0, and the
table of fixed files. A backend named here that this process cannot
have makes the first shard fail with the reason. A non-empty
NUCLEI_BACKEND overrides it.
Trait Implementations§
Source§impl Clone for NucleiConfig
impl Clone for NucleiConfig
Source§fn clone(&self) -> NucleiConfig
fn clone(&self) -> NucleiConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more