Trait adder_codec_rs::Codec
source · [−]pub trait Codec {
Show 15 methods
fn new() -> Self;
fn write_eof(&mut self);
fn flush_writer(&mut self);
fn close_writer(&mut self);
fn close_reader(&mut self);
fn set_output_stream(&mut self, stream: Option<BufWriter<File>>);
fn set_input_stream(&mut self, stream: Option<BufReader<File>>);
fn encode_header(
&mut self,
width: u16,
height: u16,
tps: u32,
ref_interval: u32,
delta_t_max: u32,
channels: u8
);
fn decode_header(&mut self);
fn encode_event(&mut self, event: &Event);
fn encode_events(&mut self, events: &[Event]);
fn encode_events_events(&mut self, events: &[Vec<Event>]);
fn decode_event(&mut self) -> Result<Event, StreamError>;
fn open_writer<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error> { ... }
fn open_reader<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error> { ... }
}
Required Methods
fn flush_writer(&mut self)
fn flush_writer(&mut self)
Flush the stream so that program can be exited safely
fn close_writer(&mut self)
fn close_reader(&mut self)
fn close_reader(&mut self)
Close the stream so that program can be exited safely