Struct Server

Source
pub struct Server { /* private fields */ }
👎Deprecated since 0.2.3: This crate has no longer been in maintenance.
Expand description

A FUSE filesystem server running on Tokio runtime.

Implementations§

Source§

impl Server

Source

pub async fn mount<'a>( mountpoint: impl AsRef<Path>, mountopts: &'a [&'a OsStr], ) -> Result<Self>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Create a FUSE server mounted on the specified path.

Source

pub fn try_clone(&self) -> Result<Self>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Attempt to make a clone of this instance.

Source

pub async fn run<F>(&mut self, fs: F) -> Result<()>
where F: Filesystem + Send + 'static,

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Run a FUSE filesystem daemon.

Source

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,

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Run a FUSE filesystem until the specified signal is received.

Source

pub async fn run_single<'a, F>(&'a mut self, fs: &'a F) -> Result<()>
where F: Filesystem,

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Run a FUSE filesystem without spawning the new task for each request.

Source

pub async fn notify_inval_inode( &mut self, ino: u64, off: i64, len: i64, ) -> Result<()>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

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.

Source

pub async fn notify_inval_entry( &mut self, parent: u64, name: impl AsRef<OsStr>, ) -> Result<()>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Invalidate an entry with the specified name in the directory.

Source

pub async fn notify_delete( &mut self, parent: u64, child: u64, name: impl AsRef<OsStr>, ) -> Result<()>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Notify that an entry with the specified name has been deleted from the directory.

Source

pub async fn notify_store( &mut self, ino: u64, offset: u64, data: &[&[u8]], ) -> Result<()>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Replace the specified range of cache data with a new value.

Source

pub async fn notify_retrieve( &mut self, ino: u64, offset: u64, size: u32, ) -> Result<u64>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Retrieve the value of the cache data with the specified range.

Source

pub async fn notify_poll_wakeup(&mut self, kh: u64) -> Result<()>

👎Deprecated since 0.2.3: This crate has no longer been in maintenance.

Notify an I/O readiness.

Trait Implementations§

Source§

impl Debug for Server

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more