Function fuse_mt::spawn_mount [] [src]

pub unsafe fn spawn_mount<'a, FS, P>(
    filesystem: FS,
    mountpoint: &P,
    options: &[&OsStr]
) -> Result<BackgroundSession<'a>, Error> where
    FS: 'a + Filesystem + Send,
    P: AsRef<Path>, 

Mount the given filesystem to the given mountpoint. This function spawns a background thread to handle filesystem operations while being mounted and therefore returns immediately. The returned handle should be stored to reference the mounted filesystem. If it's dropped, the filesystem will be unmounted.