Skip to main content

TapReader

Trait TapReader 

Source
pub trait TapReader: Debug + Send {
    // Required method
    fn receive(&self) -> Result<Value, RailError>;
}
Expand description

A blocking tap reader. One receive consumes one wire record.

Required Methods§

Source

fn receive(&self) -> Result<Value, RailError>

Blocks until a record arrives or the subscription ends.

§Errors

Returns the reader’s terminal or decoding failure in words.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§