Struct safe_core::nfs::Reader
[−]
[src]
pub struct Reader<T> { /* fields omitted */ }
Reader is used to read contents of a File. It can read in chunks if the file happens to be very large
Methods
impl<T: 'static> Reader<T>
[src]
fn new(
client: Client<T>,
storage: SelfEncryptionStorage<T>,
file: &File,
encryption_key: Option<Key>
) -> Box<NfsFuture<Reader<T>>>
[src]
client: Client<T>,
storage: SelfEncryptionStorage<T>,
file: &File,
encryption_key: Option<Key>
) -> Box<NfsFuture<Reader<T>>>
Create a new instance of Reader
fn size(&self) -> u64
[src]
Returns the total size of the file/blob
fn read(&self, position: u64, length: u64) -> Box<NfsFuture<Vec<u8>>>
[src]
Read data from file/blob