Struct extra::flatpipes::FlatPort

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.

Methods

impl<T, U: Unflattener<T>, P: BytePort> FlatPort<T, U, P>

fn new(u: U, p: P) -> FlatPort<T, U, P>

Trait Implementations

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