[][src]Struct fuser::BackgroundSession

pub struct BackgroundSession<'a> {
    pub mountpoint: PathBuf,
    pub guard: JoinGuard<'a, Result<()>>,
    // some fields omitted
}

The background session data structure

Fields

mountpoint: PathBuf

Path of the mounted filesystem

guard: JoinGuard<'a, Result<()>>

Thread guard of the background session

Implementations

impl<'a> BackgroundSession<'a>[src]

pub unsafe fn new<FS: Filesystem + Send + 'a>(
    se: Session<FS>
) -> Result<BackgroundSession<'a>>
[src]

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.

Safety

This interface is inherently unsafe if the BackgroundSession is allowed to leak without being dropped. See rust-lang/rust#24292 for more details.

Trait Implementations

impl<'a> Debug for BackgroundSession<'a>[src]

impl<'a> Drop for BackgroundSession<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for BackgroundSession<'a>

impl<'a> !Send for BackgroundSession<'a>

impl<'a> !Sync for BackgroundSession<'a>

impl<'a> Unpin for BackgroundSession<'a>

impl<'a> !UnwindSafe for BackgroundSession<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.