connection_utils/
types.rs

1use std::pin::Pin;
2use tokio_util::codec::Framed;
3
4use crate::{Channel, codecs::GenericCodec};
5
6pub type TFramedAsyncDuplex<T, K> = Framed<Pin<Box<K>>, GenericCodec<T>>;
7pub type TFramedChannel<T> = Framed<Pin<Box<dyn Channel>>, GenericCodec<T>>;