pub struct FixedSessionFileSystemFactory { /* private fields */ }Expand description
Factory that returns one already-selected session filesystem.
Workspace providers use this adapter so the runtime consumes the same
SessionFileSystem selected by the head instead of inventing a parallel
filesystem abstraction.
Implementations§
Source§impl FixedSessionFileSystemFactory
impl FixedSessionFileSystemFactory
pub fn new(file_system: Arc<dyn SessionFileSystem>) -> Self
Trait Implementations§
Source§impl Clone for FixedSessionFileSystemFactory
impl Clone for FixedSessionFileSystemFactory
Source§fn clone(&self) -> FixedSessionFileSystemFactory
fn clone(&self) -> FixedSessionFileSystemFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl SessionFileSystemFactory for FixedSessionFileSystemFactory
impl SessionFileSystemFactory for FixedSessionFileSystemFactory
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,
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.
Source§fn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
Whether this factory intentionally leaves filesystem selection to the
runtime default.
Auto Trait Implementations§
impl !RefUnwindSafe for FixedSessionFileSystemFactory
impl !UnwindSafe for FixedSessionFileSystemFactory
impl Freeze for FixedSessionFileSystemFactory
impl Send for FixedSessionFileSystemFactory
impl Sync for FixedSessionFileSystemFactory
impl Unpin for FixedSessionFileSystemFactory
impl UnsafeUnpin for FixedSessionFileSystemFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more