Struct nexus_revo_io::SymReaderFsm [−][src]
pub struct SymReaderFsm<R: Read> { /* fields omitted */ }
Expand description
Finite State Machine version of SymReader
.
Processes one bit with each poll call. Useful for applications that do not want to block.
Implementations
Processes one bit of input, returning a valid message, an error, or pending. May be called repeatedly to continuously process incoming messages.
Example
loop { match sym_reader.poll() { SymReaderFsmPoll::Msg(msg) => println!("{:x?} {:?}", msg.0, msg.1), SymReaderFsmPoll::Err(e) => panic!("poll failure: {:?}", e), SymReaderFsmPoll::Pending => {} } }
Auto Trait Implementations
impl<R> RefUnwindSafe for SymReaderFsm<R> where
R: RefUnwindSafe,
impl<R> Send for SymReaderFsm<R> where
R: Send,
impl<R> Sync for SymReaderFsm<R> where
R: Sync,
impl<R> Unpin for SymReaderFsm<R> where
R: Unpin,
impl<R> UnwindSafe for SymReaderFsm<R> where
R: UnwindSafe,