pub struct FuseSession { /* private fields */ }Expand description
A multi-threaded FUSE session that can be joined to wait for the FUSE filesystem to unmount or external shutdown.
Implementations§
Source§impl FuseSession
impl FuseSession
Sourcepub fn new<FS: Filesystem + Send + Sync + 'static>(
fuse_fs: FS,
fuse_session_config: FuseSessionConfig,
) -> Result<FuseSession>
pub fn new<FS: Filesystem + Send + Sync + 'static>( fuse_fs: FS, fuse_session_config: FuseSessionConfig, ) -> Result<FuseSession>
Create a new multi-threaded FUSE session.
Sourcepub fn from_session<FS: Filesystem + Send + Sync + 'static>(
session: Session<FS>,
max_worker_threads: usize,
clone_fuse_fd: bool,
) -> Result<Self>
pub fn from_session<FS: Filesystem + Send + Sync + 'static>( session: Session<FS>, max_worker_threads: usize, clone_fuse_fd: bool, ) -> Result<Self>
Create worker threads to dispatch requests for a FUSE session.
Sourcepub fn run_on_close(&mut self, handler: Box<dyn FnOnce() + Send>)
pub fn run_on_close(&mut self, handler: Box<dyn FnOnce() + Send>)
Add a new handler which is executed when this session is shutting down.
Sourcepub fn shutdown_fn(&self) -> impl Fn() + use<>
pub fn shutdown_fn(&self) -> impl Fn() + use<>
Function to send the shutdown signal.
Auto Trait Implementations§
impl Freeze for FuseSession
impl !RefUnwindSafe for FuseSession
impl Send for FuseSession
impl !Sync for FuseSession
impl Unpin for FuseSession
impl !UnwindSafe for FuseSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more