pub struct Server<F: FileSystem + Sync, D: AsyncDrive = AsyncDriver> { /* private fields */ }
Expand description
Fuse Server to handle requests from the Fuse client and vhost user master.
Implementations
sourceimpl<F: FileSystem + Sync, D: AsyncDrive> Server<F, D>
impl<F: FileSystem + Sync, D: AsyncDrive> Server<F, D>
sourcepub fn handle_message<S: BitmapSlice>(
&self,
r: Reader<'_, S>,
w: Writer<'_, S>,
vu_req: Option<&mut dyn FsCacheReqHandler>,
hook: Option<&dyn MetricsHook>
) -> Result<usize>
pub fn handle_message<S: BitmapSlice>(
&self,
r: Reader<'_, S>,
w: Writer<'_, S>,
vu_req: Option<&mut dyn FsCacheReqHandler>,
hook: Option<&dyn MetricsHook>
) -> Result<usize>
Main entrance to handle requests from the transport layer.
It receives Fuse requests from transport layers, parses the request according to Fuse ABI, invokes filesystem drivers to server the requests, and eventually send back the result to the transport layer.
sourceimpl<F: FileSystem + Sync, D: AsyncDrive> Server<F, D>
impl<F: FileSystem + Sync, D: AsyncDrive> Server<F, D>
Auto Trait Implementations
impl<F, D> RefUnwindSafe for Server<F, D> where
D: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, D> Send for Server<F, D> where
F: Send,
impl<F, D> Sync for Server<F, D> where
D: Sync,
impl<F, D> Unpin for Server<F, D> where
D: Unpin,
F: Unpin,
impl<F, D> UnwindSafe for Server<F, D> where
D: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more