pub struct AccelerationConfig {
pub preferred_backend: Option<AccelerationBackend>,
pub auto_fallback: bool,
pub memory_pool_size: usize,
pub enable_kernel_cache: bool,
pub enable_monitoring: bool,
}Expand description
Hardware acceleration configuration
Fields§
§preferred_backend: Option<AccelerationBackend>Preferred backend (if available)
auto_fallback: boolEnable automatic fallback to CPU
memory_pool_size: usizeMemory pool size per device (MB)
enable_kernel_cache: boolEnable kernel caching
enable_monitoring: boolEnable performance monitoring
Trait Implementations§
Source§impl Clone for AccelerationConfig
impl Clone for AccelerationConfig
Source§fn clone(&self) -> AccelerationConfig
fn clone(&self) -> AccelerationConfig
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 AccelerationConfig
impl Debug for AccelerationConfig
Auto Trait Implementations§
impl Freeze for AccelerationConfig
impl RefUnwindSafe for AccelerationConfig
impl Send for AccelerationConfig
impl Sync for AccelerationConfig
impl Unpin for AccelerationConfig
impl UnsafeUnpin for AccelerationConfig
impl UnwindSafe for AccelerationConfig
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