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