Struct fuse_backend_rs::transport::FuseSession
source · pub struct FuseSession { /* private fields */ }Expand description
A fuse session manager to manage the connection with the in kernel fuse driver.
Implementations§
source§impl FuseSession
impl FuseSession
sourcepub fn new(
mountpoint: &Path,
fsname: &str,
subtype: &str,
readonly: bool
) -> Result<FuseSession>
pub fn new(
mountpoint: &Path,
fsname: &str,
subtype: &str,
readonly: bool
) -> Result<FuseSession>
Create a new fuse session, without mounting/connecting to the in kernel fuse driver.
sourcepub fn mount(&mut self) -> Result<()>
pub fn mount(&mut self) -> Result<()>
Mount the fuse mountpoint, building connection with the in kernel fuse driver.
sourcepub fn get_fuse_file(&mut self) -> Option<&File>
pub fn get_fuse_file(&mut self) -> Option<&File>
Expose the associated FUSE session file.
sourcepub fn set_fuse_file(&mut self, file: File)
pub fn set_fuse_file(&mut self, file: File)
Force setting the associated FUSE session file.
sourcepub fn mountpoint(&self) -> &Path
pub fn mountpoint(&self) -> &Path
Get the mountpoint of the session.
sourcepub fn new_channel(&self) -> Result<FuseChannel>
pub fn new_channel(&self) -> Result<FuseChannel>
Create a new fuse message channel.