pub trait ReadSnapshot {
    fn read_bytes(&self, dest: &mut [u8], offset: u64) -> Result<(), ReaderError>;
    fn size(&self) -> Result<u64, ReaderError>;
}
Expand description

Provides functions for reading a snapshot.

Required Methods§

Copy bytes from self to dest.

Returns the size of ths snapshot source or an error if it’s not possible to get it.

Implementors§