[−][src]Struct libfuse::session::Session
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
Auto Trait Implementations
impl<T> Unpin for Session<T> where
T: Unpin,
T: Unpin,
impl<T> !Sync for Session<T>
impl<T> !Send for Session<T>
impl<T> UnwindSafe for Session<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Session<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,