Trait tarpc::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 Twhere T: ?Sized + Stream<Item = Result<Item, E>> + Sink<SinkItem, Error = E>, T::Error: Error + Send + Sync + 'static,