Struct fuse::Session [] [src]

pub struct Session<FS: Filesystem> {
    pub filesystem: FS,
    pub proto_major: u32,
    pub proto_minor: u32,
    pub initialized: bool,
    pub destroyed: bool,
    // some fields omitted
}

The session data structure

Fields

Filesystem operation implementations

FUSE protocol major version

FUSE protocol minor version

True if the filesystem is initialized (init operation done)

True if the filesystem was destroyed (destroy operation done)

Methods

impl<FS: Filesystem> Session<FS>
[src]

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.

impl<'a, FS: Filesystem + Send + 'a> Session<FS>
[src]

Run the session loop in a background thread

Trait Implementations

impl<FS: Debug + Filesystem> Debug for Session<FS>
[src]

Formats the value using the given formatter.

impl<FS: Filesystem> Drop for Session<FS>
[src]

A method called when the value goes out of scope. Read more