pub struct MockPins { /* private fields */ }Expand description
Self-contained mock GPIO implementation that records operations and supplies pre-seeded reads.
Call inject_read to pre-seed reads before running code that calls GPIO_READ, and call
trace afterwards to inspect the ordered record of all GPIO operations.
Implementations§
Trait Implementations§
Source§impl Pins for MockPins
impl Pins for MockPins
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns
self as &dyn Any to allow downcasting to a concrete type.Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns
self as &mut dyn Any to allow downcasting to a concrete type.Auto Trait Implementations§
impl Freeze for MockPins
impl RefUnwindSafe for MockPins
impl Send for MockPins
impl Sync for MockPins
impl Unpin for MockPins
impl UnsafeUnpin for MockPins
impl UnwindSafe for MockPins
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