pub struct LoadControlPanelBrick {
pub backend: ComputeBackend,
pub workload: WorkloadType,
pub intensity: f64,
pub problem_size: usize,
pub is_running: bool,
pub stats: LoadStats,
pub error: Option<String>,
pub selected_item: usize,
pub theme: Theme,
pub brick_score: Option<BrickScore>,
pub gflops: f64,
}Expand description
Load control panel for interactive load testing
Fields§
§backend: ComputeBackendSelected compute backend
workload: WorkloadTypeSelected workload type
intensity: f64Intensity level (0.0 to 100.0)
problem_size: usizeProblem size (affects memory usage)
is_running: boolWhether load test is running
stats: LoadStatsCurrent load statistics
error: Option<String>Error message if any
selected_item: usizeSelected menu item (0=backend, 1=workload, 2=intensity, 3=size, 4=start/stop)
theme: ThemeTheme for rendering
brick_score: Option<BrickScore>Current ComputeBrick quality score
gflops: f64Current GFLOP/s throughput
Implementations§
Source§impl LoadControlPanelBrick
impl LoadControlPanelBrick
Sourcepub fn next_backend(&mut self)
pub fn next_backend(&mut self)
Cycle to next backend
Sourcepub fn prev_backend(&mut self)
pub fn prev_backend(&mut self)
Cycle to previous backend
Sourcepub fn next_workload(&mut self)
pub fn next_workload(&mut self)
Cycle to next workload
Sourcepub fn prev_workload(&mut self)
pub fn prev_workload(&mut self)
Cycle to previous workload
Sourcepub fn increase_intensity(&mut self)
pub fn increase_intensity(&mut self)
Increase intensity
Sourcepub fn decrease_intensity(&mut self)
pub fn decrease_intensity(&mut self)
Decrease intensity
Sourcepub fn increase_size(&mut self)
pub fn increase_size(&mut self)
Increase problem size
Sourcepub fn decrease_size(&mut self)
pub fn decrease_size(&mut self)
Decrease problem size
Sourcepub fn toggle_running(&mut self)
pub fn toggle_running(&mut self)
Toggle running state
Sourcepub fn update_stats(&mut self, stats: LoadStats)
pub fn update_stats(&mut self, stats: LoadStats)
Update statistics from load generator
Sourcepub fn update_score(&mut self, score: BrickScore, gflops: f64)
pub fn update_score(&mut self, score: BrickScore, gflops: f64)
Update ComputeBrick score
Sourcepub fn handle_left(&mut self)
pub fn handle_left(&mut self)
Handle left key based on selected item
Sourcepub fn handle_right(&mut self)
pub fn handle_right(&mut self)
Handle right key based on selected item
Sourcepub fn handle_enter(&mut self)
pub fn handle_enter(&mut self)
Handle enter key
Trait Implementations§
Source§impl Brick for LoadControlPanelBrick
impl Brick for LoadControlPanelBrick
Source§fn brick_name(&self) -> &'static str
fn brick_name(&self) -> &'static str
Unique brick name for identification
Source§fn assertions(&self) -> Vec<BrickAssertion>
fn assertions(&self) -> Vec<BrickAssertion>
Falsifiable assertions (MUST be non-empty per Popper)
Source§fn budget(&self) -> BrickBudget
fn budget(&self) -> BrickBudget
Performance budget (Muda elimination)
Source§fn verify(&self) -> BrickVerification
fn verify(&self) -> BrickVerification
Verification (Jidoka gate)
Source§fn can_render(&self) -> bool
fn can_render(&self) -> bool
Can this brick render? (Jidoka gate)
Auto Trait Implementations§
impl Freeze for LoadControlPanelBrick
impl RefUnwindSafe for LoadControlPanelBrick
impl Send for LoadControlPanelBrick
impl Sync for LoadControlPanelBrick
impl Unpin for LoadControlPanelBrick
impl UnsafeUnpin for LoadControlPanelBrick
impl UnwindSafe for LoadControlPanelBrick
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> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.