Struct rust_uart::mock::MockStream[][src]

pub struct MockStream {
    pub write: WriteStruct,
    pub read: ReadStruct,
}

Mock object for simulating a UART data stream

Fields

Information to use when write() calls are made

Information to use when read() calls are made

Trait Implementations

impl Default for MockStream
[src]

Returns the "default value" for a type. Read more

impl Stream for MockStream
[src]

Write raw bytes to stream

Read upto a specified amount of raw bytes from the stream

Auto Trait Implementations

impl Send for MockStream

impl !Sync for MockStream