[−][src]Struct polyfuse_tokio::Server
A FUSE filesystem server running on Tokio runtime.
Methods
impl Server
[src]
pub async fn mount<'a>(
mountpoint: impl AsRef<Path>,
mountopts: &'a [&'a OsStr]
) -> Result<Self>
[src]
mountpoint: impl AsRef<Path>,
mountopts: &'a [&'a OsStr]
) -> Result<Self>
Create a FUSE server mounted on the specified path.
pub fn try_clone(&self) -> Result<Self>
[src]
Attempt to make a clone of this instance.
pub async fn run<'_, F>(&'_ mut self, fs: F) -> Result<()> where
F: Filesystem + Send + 'static,
[src]
F: Filesystem + Send + 'static,
Run a FUSE filesystem daemon.
pub async fn run_until<'_, F, S>(
&'_ mut self,
fs: F,
sig: S
) -> Result<Option<S::Output>> where
F: Filesystem + Send + 'static,
S: Future + Unpin,
[src]
&'_ mut self,
fs: F,
sig: S
) -> Result<Option<S::Output>> where
F: Filesystem + Send + 'static,
S: Future + Unpin,
Run a FUSE filesystem until the specified signal is received.
pub async fn run_single<'a, F>(&'a mut self, fs: &'a F) -> Result<()> where
F: Filesystem,
[src]
F: Filesystem,
Run a FUSE filesystem without spawning the new task for each request.
pub async fn notify_inval_inode<'_>(
&'_ mut self,
ino: u64,
off: i64,
len: i64
) -> Result<()>
[src]
&'_ mut self,
ino: u64,
off: i64,
len: i64
) -> Result<()>
Invalidate the specified range of cache data for an inode.
When the kernel receives this notification, some requests are queued to read the updated data.
pub async fn notify_inval_entry<'_>(
&'_ mut self,
parent: u64,
name: impl AsRef<OsStr>
) -> Result<()>
[src]
&'_ mut self,
parent: u64,
name: impl AsRef<OsStr>
) -> Result<()>
Invalidate an entry with the specified name in the directory.
pub async fn notify_delete<'_>(
&'_ mut self,
parent: u64,
child: u64,
name: impl AsRef<OsStr>
) -> Result<()>
[src]
&'_ mut self,
parent: u64,
child: u64,
name: impl AsRef<OsStr>
) -> Result<()>
Notify that an entry with the specified name has been deleted from the directory.
pub async fn notify_store<'_, '_, '_>(
&'_ mut self,
ino: u64,
offset: u64,
data: &'_ [&'_ [u8]]
) -> Result<()>
[src]
&'_ mut self,
ino: u64,
offset: u64,
data: &'_ [&'_ [u8]]
) -> Result<()>
Replace the specified range of cache data with a new value.
pub async fn notify_retrieve<'_>(
&'_ mut self,
ino: u64,
offset: u64,
size: u32
) -> Result<u64>
[src]
&'_ mut self,
ino: u64,
offset: u64,
size: u32
) -> Result<u64>
Retrieve the value of the cache data with the specified range.
pub async fn notify_poll_wakeup<'_>(&'_ mut self, kh: u64) -> Result<()>
[src]
Notify an I/O readiness.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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>,