pub struct Session { /* private fields */ }Expand description
The object containing the contextrual information about a FUSE session.
Implementations§
Source§impl Session
impl Session
Sourcepub fn mount(mountpoint: PathBuf, config: KernelConfig) -> Result<Self>
pub fn mount(mountpoint: PathBuf, config: KernelConfig) -> Result<Self>
Start a FUSE daemon mount on the specified path.
Sourcepub fn no_open_support(&self) -> bool
pub fn no_open_support(&self) -> bool
Return whether the kernel supports for zero-message opens.
When the returned value is true, the kernel treat an ENOSYS
error for a FUSE_OPEN request as successful and does not send
subsequent open requests. Otherwise, the filesystem should
implement the handler for open requests appropriately.
Sourcepub fn no_opendir_support(&self) -> bool
pub fn no_opendir_support(&self) -> bool
Return whether the kernel supports for zero-message opendirs.
See the documentation of no_open_support for details.
Sourcepub fn next_request(&self) -> Result<Option<Request>>
pub fn next_request(&self) -> Result<Option<Request>>
Receive an incoming FUSE request from the kernel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more