blob: 8956da9f5bbc1a76976cf0106d34d38b4289d2eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Take a look at the license at the top of the repository in the LICENSE file.
use crate::{DiskExt, DiskType};
use std::{ffi::OsStr, path::Path};
#[doc = include_str!("../../md_doc/disk.md")]
pub struct Disk {}
impl DiskExt for Disk {
fn type_(&self) -> DiskType {
unreachable!()
}
fn name(&self) -> &OsStr {
unreachable!()
}
fn file_system(&self) -> &[u8] {
&[]
}
fn mount_point(&self) -> &Path {
Path::new("")
}
fn total_space(&self) -> u64 {
0
}
fn available_space(&self) -> u64 {
0
}
fn is_removable(&self) -> bool {
false
}
fn refresh(&mut self) -> bool {
true
}
}
|