pub struct MockFrontlight {
pub sets: RefCell<Vec<u32>>,
pub scripted_gets: Vec<u32>,
/* private fields */
}Expand description
Scripted frontlight mock: records every set call and returns scripted
get values (repeating the last once exhausted). Use for deterministic
retry-loop testing.
Fields§
§sets: RefCell<Vec<u32>>§scripted_gets: Vec<u32>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MockFrontlight
impl !RefUnwindSafe for MockFrontlight
impl !Sync for MockFrontlight
impl Send for MockFrontlight
impl Unpin for MockFrontlight
impl UnsafeUnpin for MockFrontlight
impl UnwindSafe for MockFrontlight
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