pub struct MockTransport { /* private fields */ }Expand description
In-memory transport for unit tests and host-side checks.
Implementations§
Source§impl MockTransport
impl MockTransport
Sourcepub fn push_reads(&mut self, words: impl IntoIterator<Item = u32>)
pub fn push_reads(&mut self, words: impl IntoIterator<Item = u32>)
Append additional read words to the transport.
Sourcepub fn into_writes(self) -> Vec<u32>
pub fn into_writes(self) -> Vec<u32>
Consume the transport and return captured writes.
Trait Implementations§
Source§impl Default for MockTransport
impl Default for MockTransport
Source§fn default() -> MockTransport
fn default() -> MockTransport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MockTransport
impl RefUnwindSafe for MockTransport
impl Send for MockTransport
impl Sync for MockTransport
impl Unpin for MockTransport
impl UnwindSafe for MockTransport
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