Struct drakey_fuse::Session

source ·
pub struct Session<FS: Filesystem> {
    pub filesystem: FS,
    pub proto_major: u32,
    pub proto_minor: u32,
    pub initialized: bool,
    pub destroyed: bool,
    /* private fields */
}
Expand description

The session data structure

Fields

filesystem: FS

Filesystem operation implementations

proto_major: u32

FUSE protocol major version

proto_minor: u32

FUSE protocol minor version

initialized: bool

True if the filesystem is initialized (init operation done)

destroyed: bool

True if the filesystem was destroyed (destroy operation done)

Implementations

Create a new session by mounting the given filesystem to the given mountpoint

Return path of the mounted filesystem

Run the session loop that receives kernel requests and dispatches them to method calls into the filesystem. This read-dispatch-loop is non-concurrent to prevent having multiple buffers (which take up much memory), but the filesystem methods may run concurrent by spawning threads.

Run the session loop in a background thread

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.