pub struct AttachedFileSystem { /* private fields */ }
Expand description
A wrapper FileSystem which attaches a child FileSystem as a “subdirectory” in the given root FileSystem.
Caveat: The child_path
itself is not visible as a directory entry.
Implementations§
Source§impl AttachedFileSystem
impl AttachedFileSystem
Sourcepub fn new(
child_path: Vc<FileSystemPath>,
child_fs: Vc<Box<dyn FileSystem>>,
) -> Vc<Self>
pub fn new( child_path: Vc<FileSystemPath>, child_fs: Vc<Box<dyn FileSystem>>, ) -> Vc<Self>
Create a new AttachedFileSystem which will have the child_fs
as
an invisible subdirectory of the child_path
Sourcepub fn convert_path(
self: Vc<Self>,
contained_path_vc: Vc<FileSystemPath>,
) -> Vc<FileSystemPath>
pub fn convert_path( self: Vc<Self>, contained_path_vc: Vc<FileSystemPath>, ) -> Vc<FileSystemPath>
Converts the given [Vc
The given path has to be inside of the root FileSystem, the child FileSystem or this AttachedFileSystem.
Sourcepub fn get_inner_fs_path(
self: Vc<Self>,
path: Vc<FileSystemPath>,
) -> Vc<FileSystemPath>
pub fn get_inner_fs_path( self: Vc<Self>, path: Vc<FileSystemPath>, ) -> Vc<FileSystemPath>
Resolves the local path of the root or child filesystem from a path on the AttachedFileSystem
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AttachedFileSystem
impl<'de> Deserialize<'de> for AttachedFileSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FileSystem for AttachedFileSystem
impl FileSystem for AttachedFileSystem
fn read(self: Vc<Self>, path: Vc<FileSystemPath>) -> Vc<FileContent>
fn read_link(self: Vc<Self>, path: Vc<FileSystemPath>) -> Vc<LinkContent>
fn raw_read_dir( self: Vc<Self>, path: Vc<FileSystemPath>, ) -> Vc<RawDirectoryContent>
fn write( self: Vc<Self>, path: Vc<FileSystemPath>, content: Vc<FileContent>, ) -> Vc<()>
fn write_link( self: Vc<Self>, path: Vc<FileSystemPath>, target: Vc<LinkContent>, ) -> Vc<()>
fn metadata(self: Vc<Self>, path: Vc<FileSystemPath>) -> Vc<FileMeta>
Source§fn root(self: Vc<Self>) -> Vc<FileSystemPath>where
Self: Sized,
fn root(self: Vc<Self>) -> Vc<FileSystemPath>where
Self: Sized,
Returns the path to the root of the file system.
Source§impl PartialEq for AttachedFileSystem
impl PartialEq for AttachedFileSystem
Source§impl Serialize for AttachedFileSystem
impl Serialize for AttachedFileSystem
Source§impl ShrinkToFit for AttachedFileSystem
impl ShrinkToFit for AttachedFileSystem
fn shrink_to_fit(&mut self)
Source§impl TraceRawVcs for AttachedFileSystem
impl TraceRawVcs for AttachedFileSystem
fn trace_raw_vcs(&self, __context__: &mut TraceRawVcsContext)
fn get_raw_vcs(&self) -> Vec<RawVc>
Source§impl ValueDebug for AttachedFileSystem
impl ValueDebug for AttachedFileSystem
Source§impl ValueDebugFormat for AttachedFileSystem
impl ValueDebugFormat for AttachedFileSystem
fn value_debug_format<'a>(&'a self, depth: usize) -> ValueDebugFormatString<'a>
Source§impl VcValueType for AttachedFileSystem
impl VcValueType for AttachedFileSystem
Source§type Read = VcDefaultRead<AttachedFileSystem>
type Read = VcDefaultRead<AttachedFileSystem>
How to read the value.
Source§type CellMode = VcCellSharedMode<AttachedFileSystem>
type CellMode = VcCellSharedMode<AttachedFileSystem>
How to update cells of this value type.
Source§fn get_value_type_id() -> ValueTypeId
fn get_value_type_id() -> ValueTypeId
Returns the type id of the value type.
impl Eq for AttachedFileSystem
impl NonLocalValue for AttachedFileSystem
impl StructuralPartialEq for AttachedFileSystem
impl Upcast<Box<dyn FileSystem>> for AttachedFileSystem
impl Upcast<Box<dyn ValueDebug>> for AttachedFileSystem
impl Upcast<Box<dyn ValueToString>> for AttachedFileSystem
Auto Trait Implementations§
impl Freeze for AttachedFileSystem
impl !RefUnwindSafe for AttachedFileSystem
impl Send for AttachedFileSystem
impl Sync for AttachedFileSystem
impl Unpin for AttachedFileSystem
impl !UnwindSafe for AttachedFileSystem
Blanket Implementations§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more