repo_description: A new way to see and navigate directory trees : https://dystroy.org/broot
repo_topics: balanced-bfs-descent command-line command-line-tool fuzzy-search hacktoberfest linux rust tree
code: //! The whole module is only available on linux and macos
  
  mod filesystems_state;
  mod mount_list;
  mod mount_space_display;
  
  pub use {
      filesystems_state::FilesystemState,
      mount_list::MountList,
      mount_space_display::MountSpaceDisplay,
  };
  
  use {
      once_cell::sync::Lazy,
      std::sync::Mutex,
  };
  
  pub static MOUNTS: Lazy<Mutex<MountList>> = Lazy::new(|| Mutex::new(MountList::default()));
  
  pub fn clear_cache() {
      let mut mount_list = MOUNTS.lock().unwrap();
      mount_list.clear_cache();
  }
  