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,
    pub splice_write: bool,
    pub max_background: u16,
    pub congestion_threshold: u16,
    // 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)

True, if splice() syscall should be used for /dev/fuse

Number of queued requests in the kernel

Threshold when waiting fuse users are put into sleep state instead of busy loop

Methods

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

[src]

Create a new session by using a file descriptor "/dev/fuse"

[src]

Return path of the mounted filesystem

[src]

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]

[src]

Run the session loop in a background thread

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<FS> Send for Session<FS> where
    FS: Send

impl<FS> Sync for Session<FS> where
    FS: Sync