Struct extra::flatpipes::FlatChan

pub struct FlatChan<T, F, C> {
    flattener: F,
    byte_chan: C,
}

A FlatChan, consisting of a Flattener that converts values to byte vectors, and a ByteChan that transmits the bytes.

Create using the constructors in the serial and pod modules.

Methods

impl<T, F: Flattener<T>, C: ByteChan> FlatChan<T, F, C>

fn new(f: F, c: C) -> FlatChan<T, F, C>

Trait Implementations

impl<T, F: Flattener<T>, C: ByteChan> std::comm::GenericChan for FlatChan<T, F, C>

fn send(&self, val: T)