pub trait Archive {
    fn is_reader(&self) -> bool;
    fn write_all(&mut self, buf: &[u8]) -> Result<()>;
    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>;
}
Expand description

An archive reader or writer trait There is a single trait in order to simplify Archivable impls.

Required Methods

true if this is an archive reader

Write all requested bytes in buf or return an error

Read exactly the requested bytes into buf or return an error

Implementations on Foreign Types

Implementors