pub trait ReadDataOnce<'a, E> {
    // Required method
    fn read_data(self) -> Result<&'a [u8], E>;
}
Expand description

Lazy borrowed access to blob data.

Required Methods§

source

fn read_data(self) -> Result<&'a [u8], E>

Returns the contents of this blob.

This potentially performs IO and other expensive operations and should only be called when necessary.

Implementors§