Struct mai400_api::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 Stream for MockStream
[src]

Write raw bytes to stream

Read upto a specified amount of raw bytes from the stream

impl Default for MockStream
[src]

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

Auto Trait Implementations

impl Send for MockStream

impl !Sync for MockStream