1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
mod device_id; mod error; mod mount; mod sys; use { crate::error::*, }; fn main() -> Result<()> { let mounts = mount::read_all()?; println!("Found {} mounts:", mounts.len()); for mount in mounts { //if mount.mount_point.starts_with("/sys/") { // continue; //} println!("{:?}", mount); } Ok(()) }