Skip to main content

SessionFileSystemFactory

Trait SessionFileSystemFactory 

Source
pub trait SessionFileSystemFactory: Send + Sync {
    // Required method
    fn create_session_file_system<'life0, 'async_trait>(
        &'life0 self,
        context: SessionFileSystemFactoryContext,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn SessionFileSystem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn name(&self) -> &'static str { ... }
    fn is_disabled(&self) -> bool { ... }
}
Expand description

Factory for deployment-selected session filesystem implementations.

Required Methods§

Source

fn create_session_file_system<'life0, 'async_trait>( &'life0 self, context: SessionFileSystemFactoryContext, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn SessionFileSystem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolve a live filesystem from host-provided dependencies.

Provided Methods§

Source

fn name(&self) -> &'static str

Human-readable factory name for diagnostics.

Source

fn is_disabled(&self) -> bool

Whether this factory intentionally leaves filesystem selection to the runtime default.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§