[][src]Struct polyfuse::Session

pub struct Session { /* fields omitted */ }

FUSE session driver.

Methods

impl Session[src]

pub fn connection_info(&self) -> &ConnectionInfo[src]

Returns the information about the FUSE connection.

pub fn buffer_size(&self) -> usize[src]

Returns the buffer size required to receive one request.

pub async fn process<'_, '_, '_, F: ?Sized, T: ?Sized>(
    &'_ self,
    fs: &'_ F,
    io: &'_ mut T
) -> Result<()> where
    F: Filesystem,
    T: Reader + Writer + Send + Unpin
[src]

Process an incoming request using the specified filesystem operations.

pub async fn notify_inval_inode<'_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    ino: u64,
    off: i64,
    len: i64
) -> Result<()> where
    W: Writer + Unpin
[src]

Notify the cache invalidation about an inode to the kernel.

pub async fn notify_inval_entry<'_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    parent: u64,
    name: impl AsRef<OsStr>
) -> Result<()> where
    W: Writer + Unpin
[src]

Notify the invalidation about a directory entry to the kernel.

pub async fn notify_delete<'_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    parent: u64,
    child: u64,
    name: impl AsRef<OsStr>
) -> Result<()> where
    W: Writer + Unpin
[src]

Notify the invalidation about a directory entry to the kernel.

The role of this notification is similar to notify_inval_entry. Additionally, when the provided child inode matches the inode in the dentry cache, the inotify will inform the deletion to watchers if exists.

pub async fn notify_store<'_, '_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    ino: u64,
    offset: u64,
    data: &'_ [&'_ [u8]]
) -> Result<()> where
    W: Writer + Unpin
[src]

Push the data in an inode for updating the kernel cache.

pub async fn notify_retrieve<'_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    ino: u64,
    offset: u64,
    size: u32
) -> Result<u64> where
    W: Writer + Unpin
[src]

Retrieve data in an inode from the kernel cache.

pub async fn notify_poll_wakeup<'_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    kh: u64
) -> Result<()> where
    W: Writer + Unpin
[src]

Send I/O readiness to the kernel.

Trait Implementations

impl Debug for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

Blanket Implementations

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

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

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

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.