Struct fuser::BackgroundSession
source · pub struct BackgroundSession {
pub mountpoint: PathBuf,
pub guard: JoinHandle<Result<()>>,
/* private fields */
}
Expand description
The background session data structure
Fields§
§mountpoint: PathBuf
Path of the mounted filesystem
guard: JoinHandle<Result<()>>
Thread guard of the background session
Implementations§
source§impl BackgroundSession
impl BackgroundSession
sourcepub fn new<FS: Filesystem + Send + 'static>(
se: Session<FS>
) -> Result<BackgroundSession>
pub fn new<FS: Filesystem + Send + 'static>(
se: Session<FS>
) -> Result<BackgroundSession>
Create a new background session for the given session by running its session loop in a background thread. If the returned handle is dropped, the filesystem is unmounted and the given session ends.