sys: derive Clone and Debug for mount_info::Entry and MountInfo

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-01-14 15:18:09 +01:00
parent bd4a6c5b8b
commit 20fe5e1781

View File

@ -84,6 +84,7 @@ impl Tag {
}
}
#[derive(Clone, Debug)]
pub struct Entry {
/// unique identifier of the mount (may be reused after being unmounted)
pub id: MountId,
@ -163,6 +164,7 @@ impl Entry {
// TODO: Add some structure to this? Eg. sort by parent/child relation? Make a tree?
/// Mount info found in `/proc/PID/mountinfo`.
#[derive(Clone, Debug)]
pub struct MountInfo {
entries: BTreeMap<MountId, Entry>,
}