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.
impl<T, F: Flattener<T>, C: ByteChan> FlatChan<T, F, C>
fn new(f: F, c: C) -> FlatChan<T, F, C>
impl<T, F: Flattener<T>, C: ByteChan> std::comm::GenericChan for FlatChan<T, F, C>
fn send(&self, val: T)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).