1
2
3
4
5
6
7
8
9
use std::pin::Pin;

use tokio_util::codec::Framed;
use cs_utils::futures::GenericCodec;

use crate::Channel;

pub type TFramedAsyncDuplex<T, K> = Framed<Pin<Box<K>>, GenericCodec<T>>;
pub type TFramedChannel<T> = Framed<Pin<Box<dyn Channel>>, GenericCodec<T>>;