pub struct FlatPort<T, U, P> { unflattener: U, byte_port: P, }
A FlatPort, consisting of a BytePort
that receives byte vectors,
and an Unflattener
that converts the bytes to a value.
Create using the constructors in the serial
and pod
modules.
impl<T, U: Unflattener<T>, P: BytePort> FlatPort<T, U, P>
fn new(u: U, p: P) -> FlatPort<T, U, P>
impl<T, U: Unflattener<T>, P: BytePort> std::comm::GenericPort for FlatPort<T, U, P>
fn recv(&self) -> T
fn try_recv(&self) -> std::option::Option
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
).