Function hackdose_sml_parser::message_stream::sml_message_stream
source · pub fn sml_message_stream(
stream: impl AsyncRead + Unpin + Send + 'static
) -> impl Stream<Item = SmlMessages>Expand description
Read SML message stream from a reader
use std::io::Cursor;
let cursor = Cursor::new(vec![0x01, 0x02, 0x03]);
let message_stream = sml_message_stream(cursor);