[−][src]Module dialectic::backend
Transport backends for Chan
, and the traits they implement in order to be used
as such.
A Chan<Tx, Rx, P, E>
is parameterized by its transmitting channel Tx
and its
receiving channel Rx
. In order to use a Chan
to run a session, these underlying channels
must implement the traits Transmit
and Receive
for at least the types used in any given
session (and in the case of Transmit
, for the particular calling conventions used to pass
those types to Chan::send
).
Additionally, in order to support offer!
and
choose
, the sending channel Tx
must implement
Transmit<'static, Choice<N>, Val>
, and the receiving channel Rx
must implement
Receive<Choice<N>>
, for all N
. For more information, see Choice
.
Re-exports
pub use call_by::*; |
Modules
mpsc | mpsc A backend implementation using |
serde | serde A family of backend implementations using the |
Structs
Choice | A |
OutOfBoundsChoiceError | When attempting to construct a |
Traits
Receive | If a transport is |
Transmit | If a transport is |