pub struct PlatformConfig {
pub target_platform: Option<TargetPlatform>,
pub optimization_level: OptimizationLevel,
pub hardware_acceleration: bool,
pub realtime_priority: bool,
pub memory_optimization: bool,
pub power_management: bool,
pub thread_affinity: Option<u64>,
pub buffer_alignment: usize,
pub vectorization: bool,
}Expand description
Platform-specific configuration
Fields§
§target_platform: Option<TargetPlatform>Target platform (auto-detected if None)
optimization_level: OptimizationLevelOptimization level
hardware_acceleration: boolEnable hardware acceleration
realtime_priority: boolEnable real-time thread priority
memory_optimization: boolEnable memory optimization
power_management: boolEnable power management optimizations
thread_affinity: Option<u64>Thread affinity mask (CPU cores to use)
buffer_alignment: usizeBuffer alignment size (bytes)
vectorization: boolEnable vectorized operations
Implementations§
Source§impl PlatformConfig
impl PlatformConfig
Sourcepub fn with_optimization_level(self, level: OptimizationLevel) -> Self
pub fn with_optimization_level(self, level: OptimizationLevel) -> Self
Set the optimization level
Sourcepub fn with_hardware_acceleration(self, enable: bool) -> Self
pub fn with_hardware_acceleration(self, enable: bool) -> Self
Enable or disable hardware acceleration
Sourcepub fn with_realtime_priority(self, enable: bool) -> Self
pub fn with_realtime_priority(self, enable: bool) -> Self
Enable or disable real-time priority
Sourcepub fn with_thread_affinity(self, mask: u64) -> Self
pub fn with_thread_affinity(self, mask: u64) -> Self
Set thread affinity mask
Sourcepub fn with_buffer_alignment(self, alignment: usize) -> Self
pub fn with_buffer_alignment(self, alignment: usize) -> Self
Set buffer alignment size
Sourcepub fn with_vectorization(self, enable: bool) -> Self
pub fn with_vectorization(self, enable: bool) -> Self
Enable or disable vectorization
Trait Implementations§
Source§impl Clone for PlatformConfig
impl Clone for PlatformConfig
Source§fn clone(&self) -> PlatformConfig
fn clone(&self) -> PlatformConfig
Returns a duplicate 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 PlatformConfig
impl Debug for PlatformConfig
Auto Trait Implementations§
impl Freeze for PlatformConfig
impl RefUnwindSafe for PlatformConfig
impl Send for PlatformConfig
impl Sync for PlatformConfig
impl Unpin for PlatformConfig
impl UnsafeUnpin for PlatformConfig
impl UnwindSafe for PlatformConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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