Trait tarpc::Transport [−][src]
pub trait Transport<SinkItem, Item> where
Self: Stream<Item = Result<Item, <Self as Sink<SinkItem>>::Error>>,
Self: 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.
Associated Types
type TransportError: Error + Send + Sync + 'static
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.