[][src]Struct libfuse::session::Session

pub struct Session<T: Operations> { /* fields omitted */ }

The session for operating a filesystem.

Methods

impl<T: Operations> Session<T>[src]

pub fn set_signal_handlers(&mut self) -> Result<()>[src]

Register the signal handlers that exits this session for HUP, TERM and INT signals.

This method also disables the SIGPIPE signal handling preventing to terminate the process when the connection to /dev/fuse is lost.

pub fn remove_signal_handlers(&mut self)[src]

Unregister the signal handlers.

pub fn mount(&mut self, mountpoint: impl AsRef<Path>) -> Result<()>[src]

Mount this session to the specified mountpoint.

pub fn mountpoint(&self) -> Option<&Path>[src]

pub fn unmount(&mut self)[src]

pub fn raw_fd(&self) -> Option<RawFd>[src]

Returns the raw file descriptor for communication with the kernel.

pub fn run_loop(&mut self) -> Result<c_int>[src]

Enter a single threaded, blocking event loop.

When the event loop exits as a result of receiving a signal, this method returns the code of its signal.

Trait Implementations

impl<T: Operations> Drop for Session<T>[src]

Auto Trait Implementations

impl<T> Unpin for Session<T> where
    T: Unpin

impl<T> !Sync for Session<T>

impl<T> !Send for Session<T>

impl<T> UnwindSafe for Session<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Session<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]