Skip to main content

tfserver/codec/
codec_trait.rs

1use async_trait::async_trait;
2use crate::structures::transport::Transport;
3
4#[async_trait]
5///The additional trait that gaves ability to setup codec per connection.
6pub trait TfCodec
7{
8    async fn initial_setup(&mut self, transport: &mut Transport) -> bool;
9}