pub struct EngineConfig {
pub cpu_affinity: Vec<usize>,
pub huge_pages: bool,
pub realtime_priority: u8,
pub network_optimization: bool,
}Expand description
Engine configuration for RT optimization
Fields§
§cpu_affinity: Vec<usize>§huge_pages: bool§realtime_priority: u8§network_optimization: boolImplementations§
Source§impl EngineConfig
impl EngineConfig
pub fn new() -> Self
pub fn cpu_affinity(self, cores: Vec<usize>) -> Self
pub fn huge_pages(self, enabled: bool) -> Self
pub fn realtime_priority(self, priority: u8) -> Self
pub fn network_optimization(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§impl Debug for EngineConfig
impl Debug for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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