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.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundSession
impl Send for BackgroundSession
impl Sync for BackgroundSession
impl Unpin for BackgroundSession
impl !UnwindSafe for BackgroundSession
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more