drill-press 0.1.2

A cross platform library for listing and manipulating holes in sparse files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Default fall back implementation for SparseFile trait on unsupported
//! platforms
//!
//! By defualt this will just error out
use super::*;

use std::fs::File;

impl SparseFile for File {
    fn scan_chunks(&mut self) -> std::result::Result<std::vec::Vec<Segment>, ScanError> {
        Err(ScanError::UnsupportedPlatform)
    }

    fn drill_hole(&self, start: u64, end: u64) -> Result<(), ScanError> {
        Err(ScanError::UnsupportedPlatform)
    }
}