pub struct InMemoryRepoFileSystem { /* private fields */ }Expand description
In-memory repo filesystem useful for service tests.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryRepoFileSystem
impl Clone for InMemoryRepoFileSystem
Source§fn clone(&self) -> InMemoryRepoFileSystem
fn clone(&self) -> InMemoryRepoFileSystem
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 Debug for InMemoryRepoFileSystem
impl Debug for InMemoryRepoFileSystem
Source§impl Default for InMemoryRepoFileSystem
impl Default for InMemoryRepoFileSystem
Source§fn default() -> InMemoryRepoFileSystem
fn default() -> InMemoryRepoFileSystem
Returns the “default value” for a type. Read more
Source§impl RepoFileSystem for InMemoryRepoFileSystem
impl RepoFileSystem for InMemoryRepoFileSystem
Source§fn read_file(
&self,
_root: &RepoRoot,
path: &RepoRelativePath,
) -> Result<Vec<u8>, RepoctlError>
fn read_file( &self, _root: &RepoRoot, path: &RepoRelativePath, ) -> Result<Vec<u8>, RepoctlError>
Reads a repo-relative file.
Source§fn walk(
&self,
_root: &RepoRoot,
request: &WalkRequest,
) -> Result<Vec<RepoRelativePath>, RepoctlError>
fn walk( &self, _root: &RepoRoot, request: &WalkRequest, ) -> Result<Vec<RepoRelativePath>, RepoctlError>
Walks repo-relative files according to the request.
Auto Trait Implementations§
impl Freeze for InMemoryRepoFileSystem
impl RefUnwindSafe for InMemoryRepoFileSystem
impl Send for InMemoryRepoFileSystem
impl Sync for InMemoryRepoFileSystem
impl Unpin for InMemoryRepoFileSystem
impl UnsafeUnpin for InMemoryRepoFileSystem
impl UnwindSafe for InMemoryRepoFileSystem
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