pub trait Network<D: Data>: Sync + Send {
    type S: Sender<D>;
    type R: Receiver<D>;

    // Required method
    fn into(self) -> (Self::S, Self::R);
}
Expand description

A bare version of network components.

Required Associated Types§

source

type S: Sender<D>

source

type R: Receiver<D>

Required Methods§

source

fn into(self) -> (Self::S, Self::R)

Implementors§

source§

impl<D: Data, R: Receiver<D>, S: Sender<D>> Network<D> for SimpleNetwork<D, R, S>

§

type S = S

§

type R = R