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§

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.

Unmount the filesystem and join the background thread.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.