pub struct BackgroundSession<'a> {
    pub mountpoint: PathBuf,
    pub guard: JoinGuard<'a, Result<()>>,
}
Expand description

The background session data structure

Fields

mountpoint: PathBuf

Path of the mounted filesystem

guard: JoinGuard<'a, 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.

Trait Implementations

Formats the value using the given formatter. Read more
Executes the destructor for this type. 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.