pub struct SessionFileSystemFactoryContext { /* private fields */ }Expand description
Host-supplied values used by platform file-system factories.
The context is intentionally type-erased so this host contract can accept
server-only dependencies such as StorageBackend or future object-storage
clients without pulling them into everruns-core.
Implementations§
Source§impl SessionFileSystemFactoryContext
impl SessionFileSystemFactoryContext
pub fn new() -> Self
pub fn with<T: Any + Send + Sync>(self, value: Arc<T>) -> Self
pub fn get<T: Any + Send + Sync>(&self) -> Option<Arc<T>>
pub fn with_workspace_roots(self, roots: Arc<WorkspaceRootSet>) -> Self
pub fn workspace_roots(&self) -> Option<Arc<WorkspaceRootSet>>
Trait Implementations§
Source§impl Clone for SessionFileSystemFactoryContext
impl Clone for SessionFileSystemFactoryContext
Source§fn clone(&self) -> SessionFileSystemFactoryContext
fn clone(&self) -> SessionFileSystemFactoryContext
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 Default for SessionFileSystemFactoryContext
impl Default for SessionFileSystemFactoryContext
Source§fn default() -> SessionFileSystemFactoryContext
fn default() -> SessionFileSystemFactoryContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SessionFileSystemFactoryContext
impl !UnwindSafe for SessionFileSystemFactoryContext
impl Freeze for SessionFileSystemFactoryContext
impl Send for SessionFileSystemFactoryContext
impl Sync for SessionFileSystemFactoryContext
impl Unpin for SessionFileSystemFactoryContext
impl UnsafeUnpin for SessionFileSystemFactoryContext
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