pub struct LoadConfig {
pub mode: LoadingMode,
pub max_memory_bytes: Option<usize>,
pub verification: VerificationLevel,
pub backend: Backend,
pub buffer_pool: Option<Arc<BufferPool>>,
pub time_budget: Option<Duration>,
pub streaming: bool,
pub ring_buffer_size: usize,
}Expand description
Load configuration with Toyota Way Jidoka (quality built-in) enforcement
Fields§
§mode: LoadingModeLoading mode selection
max_memory_bytes: Option<usize>Maximum memory budget (Heijunka: level loading)
verification: VerificationLevelVerification strictness (NASA: defense-in-depth)
backend: BackendTrueno backend selection (SIMD/GPU/WASM)
buffer_pool: Option<Arc<BufferPool>>Pre-allocated buffer pool (deterministic allocation)
time_budget: Option<Duration>Time budget for loading (WCET enforcement)
streaming: boolEnable streaming decompression
ring_buffer_size: usizeRing buffer size for streaming mode
Implementations§
Source§impl LoadConfig
impl LoadConfig
Sourcepub fn cuda() -> Self
pub fn cuda() -> Self
Create configuration for NVIDIA CUDA deployment
Requires the cuda feature and NVIDIA driver.
Uses MappedDemand for efficient GPU memory transfers.
Sourcepub fn gpu() -> Self
pub fn gpu() -> Self
Create configuration for GPU deployment (wgpu/WebGPU)
Cross-platform GPU acceleration via compute shaders.
Sourcepub fn with_mode(self, mode: LoadingMode) -> Self
pub fn with_mode(self, mode: LoadingMode) -> Self
Set the loading mode
Sourcepub fn with_max_memory(self, bytes: usize) -> Self
pub fn with_max_memory(self, bytes: usize) -> Self
Set the maximum memory budget
Sourcepub fn with_verification(self, level: VerificationLevel) -> Self
pub fn with_verification(self, level: VerificationLevel) -> Self
Set the verification level
Sourcepub fn with_backend(self, backend: Backend) -> Self
pub fn with_backend(self, backend: Backend) -> Self
Set the backend
Sourcepub fn with_time_budget(self, budget: Duration) -> Self
pub fn with_time_budget(self, budget: Duration) -> Self
Set the time budget
Sourcepub fn with_streaming(self, ring_buffer_size: usize) -> Self
pub fn with_streaming(self, ring_buffer_size: usize) -> Self
Enable streaming mode
Sourcepub fn with_buffer_pool(self, pool: Arc<BufferPool>) -> Self
pub fn with_buffer_pool(self, pool: Arc<BufferPool>) -> Self
Set the buffer pool
Trait Implementations§
Source§impl Clone for LoadConfig
impl Clone for LoadConfig
Source§fn clone(&self) -> LoadConfig
fn clone(&self) -> LoadConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoadConfig
impl Debug for LoadConfig
Auto Trait Implementations§
impl Freeze for LoadConfig
impl RefUnwindSafe for LoadConfig
impl Send for LoadConfig
impl Sync for LoadConfig
impl Unpin for LoadConfig
impl UnwindSafe for LoadConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
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>
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>
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