tarpc

Trait Transport

Source
pub trait Transport<SinkItem, Item>
where Self: Stream<Item = Result<Item, <Self as Sink<SinkItem>>::Error>> + Sink<SinkItem, Error = Self::TransportError>, <Self as Sink<SinkItem>>::Error: Error,
{ type TransportError: Error + Send + Sync + 'static; }
Expand description

A bidirectional stream (Sink + Stream) of messages.

Required Associated Types§

Source

type TransportError: Error + Send + Sync + 'static

Associated type where clauses are not elaborated; this associated type allows users bounding types by Transport to avoid having to explicitly add T::Error: Error to their bounds.

Implementors§

Source§

impl<T, SinkItem, Item, E> Transport<SinkItem, Item> for T
where T: ?Sized + Stream<Item = Result<Item, E>> + Sink<SinkItem, Error = E>, T::Error: Error + Send + Sync + 'static,