oddity-rtsp-protocol 0.2.0

RTSP protocol implementation for oddity-rtsp-server.
Documentation
use super::{message::Message, request::Request, response::Response, serialize::Serialize};

pub trait Target {
    type Inbound: Message;
    type Outbound: Message + Serialize;
}

pub struct AsClient;

impl Target for AsClient {
    type Inbound = Response;
    type Outbound = Request;
}

pub struct AsServer;

impl Target for AsServer {
    type Inbound = Request;
    type Outbound = Response;
}