oddity_rtsp_protocol/
io.rs

1use super::{message::Message, request::Request, response::Response, serialize::Serialize};
2
3pub trait Target {
4    type Inbound: Message;
5    type Outbound: Message + Serialize;
6}
7
8pub struct AsClient;
9
10impl Target for AsClient {
11    type Inbound = Response;
12    type Outbound = Request;
13}
14
15pub struct AsServer;
16
17impl Target for AsServer {
18    type Inbound = Request;
19    type Outbound = Response;
20}