pub trait Writer { fn write_rtp(&mut self, pkt: &Packet) -> Result<(), Error>; fn close(&mut self) -> Result<(), Error>; }