Trait NewSequentialFile

Source
pub trait NewSequentialFile {
    // Required method
    fn new_sequential_file(
        &mut self,
        fname: &String,
        result: *mut *mut Box<dyn SequentialFile>,
    ) -> Status;
}

Required Methods§

Source

fn new_sequential_file( &mut self, fname: &String, result: *mut *mut Box<dyn SequentialFile>, ) -> Status

| Create an object that sequentially reads the | file with the specified name. | | On success, stores a pointer to the new file | in *result and returns OK. | | On failure stores nullptr in *result and | returns non-OK. If the file does | | not exist, returns a non-OK status. | Implementations should return a NotFound | status when the file does not exist. | | The returned file will only be accessed by | one thread at a time.

Implementors§