Struct novatel_oem6_api::mock::MockStream [−][src]
pub struct MockStream { pub write: WriteStruct, pub read: ReadStruct, }
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
impl Stream for MockStream
[src]
impl Stream for MockStream
fn write(&self, data: &[u8]) -> Result<(), UartError>
[src]
fn write(&self, data: &[u8]) -> Result<(), UartError>
Write raw bytes to stream
fn read(&self, len: usize, _timeout: Duration) -> Result<Vec<u8>, UartError>
[src]
fn read(&self, len: usize, _timeout: Duration) -> Result<Vec<u8>, UartError>
Read upto a specified amount of raw bytes from the stream
impl Default for MockStream
[src]
impl Default for MockStream
fn default() -> MockStream
[src]
fn default() -> MockStream
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for MockStream
impl Send for MockStream
impl !Sync for MockStream
impl !Sync for MockStream