pub struct LinuxRequestDispatcher { /* private fields */ }Expand description
Explicit bounded dispatcher shared by one mount session.
Implementations§
Source§impl LinuxRequestDispatcher
impl LinuxRequestDispatcher
Sourcepub fn new(runtime: Handle, max_in_flight: usize) -> Result<Self>
pub fn new(runtime: Handle, max_in_flight: usize) -> Result<Self>
Creates a dispatcher backed by a caller-owned runtime.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn reserve(
&self,
) -> Result<LinuxDispatchReservation, LinuxDispatchRejection>
pub fn reserve( &self, ) -> Result<LinuxDispatchReservation, LinuxDispatchRejection>
Reserves one in-flight slot without blocking the callback thread.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn spawn_cleanup<F>(&self, future: F)
pub fn spawn_cleanup<F>(&self, future: F)
Dispatches mandatory cleanup for an already accepted native handle.
Cleanup bypasses the normal request semaphore and closing fence because FUSE issues one
final release per successful open; rejecting that cleanup would leak adapter and
product-owned session state. Callers must use this only for bounded-by-open-handle terminal
work, never for new backend requests.
Sourcepub fn is_closing(&self) -> bool
pub fn is_closing(&self) -> bool
Returns whether new callback work is rejected.
Sourcepub fn metrics(&self) -> LinuxDispatchMetrics
pub fn metrics(&self) -> LinuxDispatchMetrics
Returns an atomic metrics snapshot.
Trait Implementations§
Source§impl Clone for LinuxRequestDispatcher
impl Clone for LinuxRequestDispatcher
Source§fn clone(&self) -> LinuxRequestDispatcher
fn clone(&self) -> LinuxRequestDispatcher
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more