Struct retina_core::config::RuntimeConfig
source · pub struct RuntimeConfig {
pub main_core: u32,
pub nb_memory_channels: usize,
pub suppress_dpdk_output: bool,
pub mempool: MempoolConfig,
pub online: Option<OnlineConfig>,
pub offline: Option<OfflineConfig>,
pub conntrack: ConnTrackConfig,
/* private fields */
}
Expand description
Runtime configuration options.
Fields§
§main_core: u32
Main core identifier. Initializes and manages packet processing cores and logging, but does not process packets itself.
nb_memory_channels: usize
Sets the number of memory channels to use.
This controls the spread layout used by the memory allocator and is mainly for performance
optimization. Can be configured up to be the number of channels per CPU socket if the
platform supports multiple memory channels. Defaults to 1
.
suppress_dpdk_output: bool
Suppress DPDK runtime logging and telemetry output. Defaults to true
.
mempool: MempoolConfig
Per-mempool settings.
online: Option<OnlineConfig>
Online mode settings. Either online
or offline
must be specified.
offline: Option<OfflineConfig>
Offline mode settings. Either online
or offline
must be specified.
conntrack: ConnTrackConfig
Connection tracking settings.
Implementations§
source§impl RuntimeConfig
impl RuntimeConfig
sourcepub fn get_all_core_ids(&self) -> Vec<CoreId>
pub fn get_all_core_ids(&self) -> Vec<CoreId>
Returns a list of core IDs assigned to the runtime.
pub fn get_all_rx_core_ids(&self) -> Vec<CoreId>
Trait Implementations§
source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a copy of the value. Read more
1.0.0 · 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 RuntimeConfig
impl Debug for RuntimeConfig
source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more