mirror of
https://github.com/qwjyh/xdbm
synced 2025-07-07 07:09:19 +09:00
move device related functions & add doc
This commit is contained in:
parent
9706e8d41e
commit
83233740aa
4 changed files with 67 additions and 58 deletions
|
@ -1,3 +1,5 @@
|
|||
//! Device specific common data for storages.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::path;
|
||||
|
||||
|
|
|
@ -91,7 +91,11 @@ impl StorageExt for PhysicalDrivePartition {
|
|||
self.local_info.get(&device.name()).is_some()
|
||||
}
|
||||
|
||||
fn mount_path(&self, device: &devices::Device, _: &HashMap<String, Storage>) -> Result<path::PathBuf> {
|
||||
fn mount_path(
|
||||
&self,
|
||||
device: &devices::Device,
|
||||
_: &HashMap<String, Storage>,
|
||||
) -> Result<path::PathBuf> {
|
||||
Ok(self
|
||||
.local_info
|
||||
.get(&device.name())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue