pub trait Pipe<T> {
// Required methods
fn send(&mut self, val: T) -> Result<()>;
fn recv(&mut self) -> Result<T>;
}
Expand description
Simple communication channel to send/recv objects over a synchronous stream.
NOTE: This synchronous specialization is mainly useful when wrapped w/ the
PyPipe
struct, which is also synchronous (via Python).