[−][src]Struct polyfuse::Session
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]
&'_ self,
fs: &'_ F,
io: &'_ mut T
) -> Result<()> where
F: Filesystem,
T: Reader + Writer + Send + Unpin,
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]
&'_ self,
writer: &'_ mut W,
ino: u64,
off: i64,
len: i64
) -> Result<()> where
W: Writer + Unpin,
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]
&'_ self,
writer: &'_ mut W,
parent: u64,
name: impl AsRef<OsStr>
) -> Result<()> where
W: Writer + Unpin,
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]
&'_ self,
writer: &'_ mut W,
parent: u64,
child: u64,
name: impl AsRef<OsStr>
) -> Result<()> where
W: Writer + Unpin,
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]
&'_ self,
writer: &'_ mut W,
ino: u64,
offset: u64,
data: &'_ [&'_ [u8]]
) -> Result<()> where
W: Writer + Unpin,
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]
&'_ self,
writer: &'_ mut W,
ino: u64,
offset: u64,
size: u32
) -> Result<u64> where
W: Writer + Unpin,
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]
&'_ self,
writer: &'_ mut W,
kh: u64
) -> Result<()> where
W: Writer + Unpin,
Send I/O readiness to the kernel.
Trait Implementations
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]
T: 'static + ?Sized,
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> 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>,