#![doc = include_str!("../README.md")]
#![doc(html_root_url = "https://docs.rs/fuser-async/0.1.1")]
mod async_readseek;
mod error;
mod filesystem;
mod fuse;
pub use async_readseek::FileHandle;
pub use error::Error;
pub use filesystem::Filesystem;
pub use fuse::FilesystemFUSE;
pub mod cache;
pub mod remapping;
pub mod rwlockoption;
pub mod utils;
use std::path::Path;
trait_set::trait_set! {
pub trait FilesystemSSUS = Filesystem + Send + Sync + std::marker::Unpin + 'static;
}
#[derive(Debug)]
pub struct DirEntry {
pub inode: u64,
pub file_type: fuser::FileType,
pub name: String, }
impl DirEntry {
pub fn path(&self) -> &Path {
Path::new(&self.name)
}
}
#[async_trait::async_trait]
pub trait Refresh {
type Error;
async fn refresh(&mut self) -> Result<(), Self::Error>;
async fn cleanup(&self) -> Result<(), Self::Error>;
}