Struct rust_uart::mock::MockStream
source · [−]pub struct MockStream {
pub write: WriteStruct,
pub read: ReadStruct,
}
Expand description
Mock object for simulating a UART data stream
Fields
write: WriteStruct
Information to use when write() calls are made
read: ReadStruct
Information to use when read() calls are made
Trait Implementations
sourceimpl Default for MockStream
impl Default for MockStream
sourceimpl Stream for MockStream
impl Stream for MockStream
Auto Trait Implementations
impl !RefUnwindSafe for MockStream
impl Send for MockStream
impl !Sync for MockStream
impl Unpin for MockStream
impl UnwindSafe for MockStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more