pub struct MockPowerSource {
pub watts: f64,
}Expand description
Fixed-wattage mock for deterministic tests.
Fields§
§watts: f64Trait Implementations§
Source§impl PowerSource for MockPowerSource
impl PowerSource for MockPowerSource
fn read_watts(&self) -> f64
Auto Trait Implementations§
impl Freeze for MockPowerSource
impl RefUnwindSafe for MockPowerSource
impl Send for MockPowerSource
impl Sync for MockPowerSource
impl Unpin for MockPowerSource
impl UnsafeUnpin for MockPowerSource
impl UnwindSafe for MockPowerSource
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