Implement: Storage::createFile()

This commit is contained in:
Matthias Beyer 2015-11-23 19:16:24 +01:00
parent 263a3b7780
commit e623b74139

View file

@ -51,7 +51,8 @@ impl StorageBackend {
self.new_file_handle().and_then(|(id, _)| Some(id))
}
fn createFile() -> File {
fn createFile(&self) -> Option<File> {
self.new_file_handle().and_then(|(id, h)| Some(File::from_handle(id, h)))
}
fn writeFile(f: File) -> BackendOperationResult {